Fix inline functions that are not members of a class (remove inline).
Multiply by constants for degrees/radians conversions rather than
calling methods. Some format updates.
Add unit tests for Point2.
Add ClosestPoint on polyline test and fix the ClosestPoint method.