SloppyMath
object SloppyMath
Math functions that trade off accuracy for speed.
Functions
Link copied to clipboard
Returns the Haversine distance in meters between two points given the previous result from .haversinSortKey
Returns the Haversine distance in meters between two points specified in decimal degrees (latitude/longitude). This works correctly even if the dateline is between the two points.
Link copied to clipboard
Returns a sort key for distance. This is less expensive to compute than .haversinMeters, but it always compares the same. This can be converted into an actual distance with .haversinMeters, which effectively does the second half of the computation.