Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/comaps/comaps
/ GetMiddleAngle
Function
GetMiddleAngle
libs/geometry/angles.cpp:35–47 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
33
}
34
35
double GetMiddleAngle(double a1, double a2)
36
{
37
double ang = (a1 + a2) / 2.0;
38
39
if (fabs(a1 - a2) > math::pi)
40
{
41
if (ang > 0.0)
42
ang -= math::pi;
43
else
44
ang += math::pi;
45
}
46
return ang;
47
}
48
} // namespace ang
Callers
2
Add
Method · 0.85
UNIT_TEST
Function · 0.85
Calls
no outgoing calls
Tested by
1
UNIT_TEST
Function · 0.68