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

Function xrmod

src/SB/Core/x/xCamera.cpp:1784–1798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1782#endif
1783
1784F32 xrmod(F32 ang)
1785{
1786 F32 frac = 0.15915494f * ang;
1787
1788 if (frac < 0.0f)
1789 {
1790 return (frac - std::ceilf(frac) + 1.0f) * 6.2831855f;
1791 }
1792 else if (frac >= 1.0f)
1793 {
1794 return (frac - std::floorf(frac)) * 6.2831855f;
1795 }
1796
1797 return ang;
1798}
1799
1800xVec3& xVec3::operator/=(F32 f)
1801{

Callers 7

updateMethod · 0.70
startMethod · 0.50
face_cameraMethod · 0.50
collideMethod · 0.50
stopMethod · 0.50
update_pulseMethod · 0.50
update_headingMethod · 0.50

Calls 1

floorfFunction · 0.85

Tested by

no test coverage detected