Simplify Math functions.

Simplify functions to find equivalent angles in the [-pi, pi] and [0, 2 * pi] ranges. We'll use one of these when allowing extents/rectangles cross +/- 180 degrees longitude.