MCPcopy Create free account
hub / github.com/admtrv/objcurses / rad_norm

Function rad_norm

utils/algorithms.cpp:144–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144float rad_norm(float radian)
145{
146 radian = std::fmod(radian, 2 * PI);
147 return (radian <= -PI) ? radian + 2 * PI : (radian > PI) ? radian - 2 * PI : radian;
148}

Callers 3

CameraMethod · 0.85
rotate_leftMethod · 0.85
rotate_rightMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected