A collection of very fast approximations to common geodesic measurements. Useful for performance-sensitive code that measures things on a city scale.
This code is a Kotlin port of the mapbox/cheap-ruler JavaScript code. The original code is under this ISC license, reproduced here for ease:
normalize a degree value into -180..180 range