mirror of
https://github.com/zeldaret/af.git
synced 2026-09-26 13:33:16 -04:00
fb02647839
* 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
9 lines
264 B
C
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
|