GeographicProjection

Represents transformations between geographic coordinates and Cartesian coordinates. GeographicProjection specifies the Cartesian coordinate system used by Globe and WorldWindow.

Inheritors

Properties

Link copied to clipboard
abstract val displayName: String

This projection's display name.

Link copied to clipboard
open val is2D: Boolean

Indicates whether this projection is a 2D projection.

Link copied to clipboard

Indicates whether this projection is continuous with itself horizontally.

Link copied to clipboard

Indicates the geographic limits of this projection. May be null to indicate the full range of latitude and longitude.

Functions

Link copied to clipboard
abstract fun cartesianToGeographic(ellipsoid: Ellipsoid, x: Double, y: Double, z: Double, offset: Double, result: Position): Position

Converts a Cartesian point to a geographic position.

Link copied to clipboard
abstract fun cartesianToLocalTransform(ellipsoid: Ellipsoid, x: Double, y: Double, z: Double, result: Matrix4): Matrix4
Link copied to clipboard
abstract fun geographicToCartesian(ellipsoid: Ellipsoid, latitude: Angle, longitude: Angle, altitude: Double, offset: Double, result: Vec3): Vec3

Converts a geographic position to Cartesian coordinates.

Link copied to clipboard
abstract fun geographicToCartesianBorder(ellipsoid: Ellipsoid, sector: Sector, numLat: Int, numLon: Int, height: Float, origin: Vec3?, offset: Double, result: FloatArray): FloatArray
Link copied to clipboard
abstract fun geographicToCartesianGrid(ellipsoid: Ellipsoid, sector: Sector, numLat: Int, numLon: Int, height: FloatArray?, verticalExaggeration: Double, origin: Vec3?, offset: Double, result: FloatArray, rowOffset: Int, rowStride: Int): FloatArray
Link copied to clipboard
abstract fun geographicToCartesianNormal(ellipsoid: Ellipsoid, latitude: Angle, longitude: Angle, result: Vec3): Vec3
Link copied to clipboard
abstract fun geographicToCartesianTransform(ellipsoid: Ellipsoid, latitude: Angle, longitude: Angle, altitude: Double, result: Matrix4): Matrix4
Link copied to clipboard
abstract fun intersect(ellipsoid: Ellipsoid, line: Line, result: Vec3): Boolean

Computes the first intersection of a specified globe and line. The line is interpreted as a ray; intersection points behind the line's origin are ignored.