Coordinates

Coordinates object

Constructors

Link copied to clipboard
constructor()
constructor(address: Long)
constructor(address: Long, isReference: Boolean)
constructor(latitude: Double, longitude: Double, altitude: Double = 0.0, parentSceneObject: Int = EMainSceneObjects.Earth.value)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Altitude in meters.

Link copied to clipboard

Latitude in degrees. Valid values -90.0 .. +90.0.

Link copied to clipboard

Longitude in degrees. Valid values -180.0 .. +180.0.

Link copied to clipboard

Parent scene object to which coordinates belongs. See EMainSceneObjects.

Functions

Link copied to clipboard
external fun assignValues(latitude: Double, longitude: Double, altitude: Double = 0.0, parentSceneObject: Int = EMainSceneObjects.Earth.value)

Assign the given values.

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun getAzimuth(point: Coordinates): Double

Calculates the azimuth between the two points according to the ellipsoid model of WGS84.

Link copied to clipboard
external fun getDistance(point: Coordinates): Double

Calculates the distance in meters between two WGS84 coordinates.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun valid(): Boolean

Check if the coordinates are valid.