Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
144
float 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
Camera
Method · 0.85
rotate_left
Method · 0.85
rotate_right
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected