Computational Geometry
[...]
Normalization of Angles
We want to change any given angle to fit inside a two pi interval or range.
We achieve this by adding or subtracting multiples of two pi.
Now, what interval should we map angles to?
If we choose (-pi, +pi), then we can average any two thus normalized angles by adding them together and dividing by two.