Abstract2DProjection
Base class for 2D geographic projections that lay out the globe on the XY plane.
Subclasses provide the projection-specific geographic-to-Cartesian math; this class supplies the standard 2D-projection scaffolding: a constant up-vector, an identity-translated local frame, a ray/XY-plane intersection, and the shared bulk grid/border tessellation loops.
The bulk generators geographicToCartesianGrid / geographicToCartesianBorder hold the row/column iteration once for all projections; a subclass supplies only projectPoint (project one geographic point to XY) and, when it can hoist per-latitude work out of the longitude loop, projectRow.
Inheritors
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard