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

Function xAngleClamp

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

Source from the content-addressed store, hash-verified

188}
189
190F32 xAngleClamp(F32 a)
191{
192 F32 rad360 = 2 * PI;
193 F32 rem = xfmod(a, rad360);
194
195 if (rem < 0.0f)
196 {
197 return rem + rad360;
198 }
199
200 return rem;
201}
202
203F32 xAngleClampFast(F32 a)
204{

Callers 3

xEntRotationToMatrixFunction · 0.70
xEntMotionResetFunction · 0.70
xEntRotMoveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected