MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xDangleClamp

Function xDangleClamp

src/SB/Core/x/xMath.cpp:220–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220F32 xDangleClamp(F32 a)
221{
222 F32 rad360 = 2 * PI;
223 F32 rem = xfmod(a, rad360);
224
225 if (rem >= PI)
226 {
227 return rem - rad360;
228 }
229
230 if (rem < -PI)
231 {
232 return rem + rad360;
233 }
234
235 return rem;
236}
237
238void xAccelMove(F32& x, F32& v, F32 a, F32 dt, F32 endx, F32 maxv)
239{

Callers 5

xCam_worldtocylFunction · 0.70
_xCameraUpdateFunction · 0.70
xCameraMoveFunction · 0.70
xCameraLookYPRFunction · 0.70
TurnToFaceMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected