getAngle

open fun getAngle(lon1: Double, lat1: Double, lon2: Double, lat2: Double): Double

Returns clockwise oriented angle (in [0, 360] degrees) between two points and vertical.

Return

the clockwise oriented angle (in [0, 360] degrees) between two points and vertical.

Parameters

lon1

First longitude

lat1

First latitude

lon2

Second longitude

lat2

Second latitude


open fun getAngle(other: GeoPoint): Double

Returns clockwise oriented angle (in [0, 360] degrees) between this GeoPoint and another one and vertical.

Return

the clockwise oriented angle (in [0, 360] degrees) between this GeoPoint and another one and vertical.

Parameters

other

another GeoPoint instance