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

Function xAngleClampFast

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

Source from the content-addressed store, hash-verified

201}
202
203F32 xAngleClampFast(F32 a)
204{
205 F32 rad360 = (2 * PI);
206
207 if (a < 0.0f)
208 {
209 return a + rad360;
210 }
211
212 if (a >= rad360)
213 {
214 return a - rad360;
215 }
216
217 return a;
218}
219
220F32 xDangleClamp(F32 a)
221{

Callers 1

xatan2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected