MathUtil

open class MathUtil

Utility functions that are used by both PolyUtil and SphericalUtil.

Functions

Link copied to clipboard
open fun getDistanceToLine(    @NonNull a: Point,     @NonNull b: Point,     @NonNull p: Point): Double
* Returns the distance from a line (given by it's endpoints) to a point

Properties

Link copied to clipboard
val EARTH_MEAN_RADIUS: Double
The earth's radius, in meters.
Link copied to clipboard
val EARTH_METERS_PR_LAT_DEGREE: Double