mirror of
https://github.com/zeldaret/tww.git
synced 2026-05-23 06:54:16 -04:00
a52bb789da
TP debug has an assert in d_a_obj showing the name of this variable is `M_no` there.
18 lines
371 B
C
18 lines
371 B
C
#ifndef JMATRIGONOMETRIC_H
|
|
#define JMATRIGONOMETRIC_H
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
extern u32 jmaSinShift;
|
|
extern f32 *jmaSinTable;
|
|
extern f32 *jmaCosTable;
|
|
|
|
inline f32 JMASCos(s16 v) {
|
|
return jmaCosTable[static_cast<u16>(v) >> jmaSinShift];
|
|
}
|
|
inline f32 JMASSin(s16 v) {
|
|
return jmaSinTable[static_cast<u16>(v) >> jmaSinShift];
|
|
}
|
|
|
|
#endif /* JMATRIGONOMETRIC_H */
|