MCPcopy Create free account
hub / github.com/doldecomp/mkdd / sinLap

Method sinLap

include/JSystem/JMath/JMath.h:69–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 f32 sinShort(s16 v) const { return mTable[static_cast<u16>(v) >> (16U - N)].first; }
68 f32 cosShort(s16 v) const { return mTable[static_cast<u16>(v) >> (16U - N)].second; }
69 f32 sinLap(f32 x) const {
70 if (x < 0.0f) {
71 return -mTable[static_cast<u16>(-(T)(1 << N) * x) & ((1 << N) - 1)].first;
72 }
73 return mTable[static_cast<u16>((T)(1 << N) * x) & ((1 << N) - 1)].first;
74 }
75
76 f32 sinRadian(f32 x) const {
77 if (x < 0.0f) {

Callers 1

JMASSinLapFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected