Coordinate

data class Coordinate(val location: Location, val levels: List<Float> = listOf(), val heightFromFloor: Float? = null, val heightFromGround: Float? = null)

Constructors

Link copied to clipboard
constructor(location: Location, level: Float)
constructor(latitude: Double, longitude: Double, levels: List<Float> = emptyList())
constructor(latitude: Double, longitude: Double, level: Float)
constructor(latitude: Double, longitude: Double, altitude: Double, accuracy: Float, levels: List<Float> = emptyList())
constructor(location: Location, levels: List<Float> = listOf(), heightFromFloor: Float? = null, heightFromGround: Float? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Altitude from sea level expressed in meters.

Link copied to clipboard
Link copied to clipboard
val cartesian: Double3
Link copied to clipboard
val ecef: Double3
Link copied to clipboard
val ecefToEnuRot: Quaternion
Link copied to clipboard
val ecefToEusRot: Quaternion
Link copied to clipboard
val enuToEcefRot: Quaternion
Link copied to clipboard
val eusToEcefRot: Quaternion
Link copied to clipboard
val heightFromFloor: Float? = null

Height from the floor of the defined level. Must be null outdoor.

Link copied to clipboard
val heightFromGround: Float? = null

Height from the ground of the defined level. Must be null outdoor.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val point: Point
Link copied to clipboard
val time: Long

Functions

Link copied to clipboard

Returns the approximate initial bearing in degrees east of true north when traveling along the shortest path between this coordinate and the given coordinate. The shortest path is defined using the WGS84 ellipsoid. Coordinates that are (nearly) antipodal may produce meaningless results.

Link copied to clipboard
fun destination(distance: Double, bearing: Float): Coordinate
Link copied to clipboard

Calculates the distance (measured in meters) from the current object’s coordinate to the specified coordinate. This uses the Haversine formula to account for global curvature.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Adapted to cartesian coordinates using Spherical model

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String