Coordinate
data class Coordinate(val location: Location, val levels: List<Float> = listOf(), val heightFromFloor: Float? = null)
Constructors
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
https://stackoverflow.com/questions/1299567/how-to-calculate-distance-from-a-point-to-a-line-segment-on-a-sphere Adapted to cartesian coordinates using Spherical model Note: Ellipsoid model using ECEF seems to not work due to Earth radius factor