mirror of
https://github.com/zeldaret/tww.git
synced 2026-05-23 15:01:33 -04:00
01f2fc433f
* Fix sin and cos * Fix dCcD_GObjInf JP inlining difference * Improvements to dDlst_alphaModel_c * d_a_nh done (no match)
19 lines
398 B
C
19 lines
398 B
C
#ifndef JMATRIGONOMETRIC_H
|
|
#define JMATRIGONOMETRIC_H
|
|
|
|
#include "dolphin/types.h"
|
|
#include "MSL_C/utility.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 */
|