Companion

Properties

Link copied to clipboard

An immutable Cartographic instance initialized to (0.0, 0.0, 0.0).

Functions

Link copied to clipboard
fun clone(cartographic: Cartographic, result: Cartographic? = definedExternally): Cartographic

Duplicates a Cartographic instance.

Link copied to clipboard
fun equals(left: Cartographic? = definedExternally, right: Cartographic? = definedExternally): Boolean

Compares the provided cartographics componentwise and returns true if they are equal, false otherwise.

Link copied to clipboard
fun equalsEpsilon(left: Cartographic? = definedExternally, right: Cartographic? = definedExternally, epsilon: Double? = definedExternally): Boolean

Compares the provided cartographics componentwise and returns true if they are within the provided epsilon, false otherwise.

Link copied to clipboard
fun fromCartesian(cartesian: Cartesian3, ellipsoid: Ellipsoid? = definedExternally, result: Cartographic? = definedExternally): Cartographic

Creates a new Cartographic instance from a Cartesian position. The values in the resulting object will be in radians.

Link copied to clipboard
fun fromDegrees(longitude: Double, latitude: Double, height: Double? = definedExternally, result: Cartographic? = definedExternally): Cartographic

Creates a new Cartographic instance from longitude and latitude specified in degrees. The values in the resulting object will be in radians.

Link copied to clipboard
fun fromRadians(longitude: Double, latitude: Double, height: Double? = definedExternally, result: Cartographic? = definedExternally): Cartographic

Creates a new Cartographic instance from longitude and latitude specified in radians.

Link copied to clipboard
fun toCartesian(cartographic: Cartographic, ellipsoid: Ellipsoid? = definedExternally, result: Cartesian3? = definedExternally): Cartesian3

Creates a new Cartesian3 instance from a Cartographic input. The values in the inputted object should be in radians.