Skip to content
Select language:English

MCL 1.3.5

object Geodesy

Contains constants and functions for geodetic calculations.

Properties

The equatorial radius of the Earth in meters.

The flattening of the Earth.

const val EARTH_INVERSE_FLATNESS: Double = 298.257223563

The inverse flattening of the Earth.

The mean radius of the Earth in meters.

The squared flattening of the Earth.

Functions

fun bearing(from: Coord2D, to: Coord2D): Double

Calculates the bearing (direction) between two sets of coordinates.

Calculates the distance between two sets of coordinates.

Calculates the distance between two sets of coordinates.