Files
af/include/m_camera2.h
Lucas Shaw fb02647839 m_olib.c OK (#167)
* m_olib.c OK

* ran format.py

* added functions to header file

* updated graphics macros in two overlays to make them work with format.py

* rename z64camera.h to m_camera2.h

* made recommended changes
2024-04-10 23:20:00 -07:00

9 lines
264 B
C

#ifndef M_CAMERA_H
#define M_CAMERA_H
// these two angle conversion macros are slightly inaccurate
#define CAM_DEG_TO_BINANG(degrees) (s16)((degrees) * ((f32)0xFFFF / 360) + .5f)
#define CAM_BINANG_TO_DEG(binang) ((f32)(binang) * (360.0001525f / 0xFFFF))
#endif