UpsProjection

open class UpsProjection(var isNorth: Boolean = true) : Abstract2DProjection

Represents a Universal Polar Stereographic geographic projection.

Parameters

isNorth

true for the north aspect, false for the south aspect.

Constructors

Link copied to clipboard
constructor(isNorth: Boolean = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val displayName: String

This projection's display name.

Link copied to clipboard
override val is2D: Boolean = true

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 whether this projection is the north or south aspect.

Link copied to clipboard
open override val projectionLimits: Sector

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

Functions

Link copied to clipboard
open override 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
open override fun cartesianToLocalTransform(ellipsoid: Ellipsoid, x: Double, y: Double, z: Double, result: Matrix4): Matrix4
Link copied to clipboard
open override 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
open override fun geographicToCartesianBorder(ellipsoid: Ellipsoid, sector: Sector, numLat: Int, numLon: Int, height: Float, origin: Vec3?, offset: Double, result: FloatArray): FloatArray
Link copied to clipboard
open override 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
open override fun geographicToCartesianNormal(ellipsoid: Ellipsoid, latitude: Angle, longitude: Angle, result: Vec3): Vec3
Link copied to clipboard
open override fun geographicToCartesianTransform(ellipsoid: Ellipsoid, latitude: Angle, longitude: Angle, altitude: Double, result: Matrix4): Matrix4
Link copied to clipboard
open override 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.