The ratio between the semi-minor axis and the semi-major axis.
The eccentricity of this ellipsoid.
The circumference at the equator.
The flattening of this ellipsoid.
Static
WGS84Gets the dimensions (width and height) across the center of of the extent, in meters.
Note: this is distinct to Extent.dimensions which returns the dimensions in the extent's own CRS (meters or degrees).
The extent dimensions.
Returns an approximated length of the meridian arc of the given angle, in meters.
Note: this function uses a very simplified method, as the actual method involves intrgrals. For very oblate spheroids, the results will be wrong.
The latitude of the start of the meridian arc
The latitude of the end of the meridian arc
Returns the normal of the spheroid for the given location.
The latitude, in degrees.
The longitude, in degrees.
Optional
target: Vector3The target vector to store the result. If none, one will be created.
The normal vector.
Converts the geodetic coordinates to cartesian coordinates in the ECEF coordinate system.
The latitude, in degrees.
The longitude, in degrees.
The altitude, in meters, above or below the ellipsoid.
Optional
target: Vector3The target vector. If none, one will be created.
The cartesian coordinates.
Converts the cartesian coordinates to geodetic coordinates.
The cartesian X coordinate.
The cartesian Y coordinate.
The cartesian Z coordinate.
Optional
target: CoordinatesThe geodetic coordinates.
Static
sphere
A configurable spheroid that allows conversion from and to geodetic coordinates and cartesian coordinates, as well as utility function to compute various geodetic values.