Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
CesiumForUnity.CesiumWgs84Ellipsoid Class Reference

Holds static methods for ellipsoid math and transforming between geospatial coordinate systems using the World Geodetic System (WGS84) standard. More...

Static Public Member Functions

static partial double3 GetRadii ()
 Gets the radii of the ellipsoid in its x-, y-, and z-directions.
 
static double GetMaximumRadius ()
 Gets the maximum radius of the ellipsoid in any dimension.
 
static double GetMinimumRadius ()
 Gets the minimum radius of the ellipsoid in any dimension.
 
static partial? double3 ScaleToGeodeticSurface (double3 earthCenteredEarthFixed)
 Scale the given Earth-Centered, Earth-Fixed position along the geodetic surface normal so that it is on the surface of the ellipsoid.
 
static partial double3 GeodeticSurfaceNormal (double3 earthCenteredEarthFixed)
 Computes the normal of the plane tangent to the surface of the ellipsoid at the provided Earth-Centered, Earth-Fixed position.
 
static partial double3 LongitudeLatitudeHeightToEarthCenteredEarthFixed (double3 longitudeLatitudeHeight)
 Convert longitude, latitude, and height to Earth-Centered, Earth-Fixed (ECEF) coordinates.
 
static partial double3 EarthCenteredEarthFixedToLongitudeLatitudeHeight (double3 earthCenteredEarthFixed)
 Convert Earth-Centered, Earth-Fixed (ECEF) coordinates to longitude, latitude, and height.
 

Detailed Description

Holds static methods for ellipsoid math and transforming between geospatial coordinate systems using the World Geodetic System (WGS84) standard.

Definition at line 11 of file CesiumWgs84Ellipsoid.cs.

Member Function Documentation

◆ EarthCenteredEarthFixedToLongitudeLatitudeHeight()

static partial double3 CesiumForUnity.CesiumWgs84Ellipsoid.EarthCenteredEarthFixedToLongitudeLatitudeHeight ( double3 earthCenteredEarthFixed)
static

Convert Earth-Centered, Earth-Fixed (ECEF) coordinates to longitude, latitude, and height.

Parameters
earthCenteredEarthFixedThe ECEF coordinates in meters.
Returns
The longitude (X) and latitude (Y) are in degrees. The height (Z) is in meters above the ellipsoid, and should not be confused with a geoid, orthometric, or mean sea level height.

◆ GeodeticSurfaceNormal()

static partial double3 CesiumForUnity.CesiumWgs84Ellipsoid.GeodeticSurfaceNormal ( double3 earthCenteredEarthFixed)
static

Computes the normal of the plane tangent to the surface of the ellipsoid at the provided Earth-Centered, Earth-Fixed position.

Parameters
earthCenteredEarthFixedThe ECEF position in meters.
Returns
The normal at the ECEF position

◆ GetMaximumRadius()

static double CesiumForUnity.CesiumWgs84Ellipsoid.GetMaximumRadius ( )
inlinestatic

Gets the maximum radius of the ellipsoid in any dimension.

Returns
The maximum radius of the ellipsoid.

Definition at line 23 of file CesiumWgs84Ellipsoid.cs.

◆ GetMinimumRadius()

static double CesiumForUnity.CesiumWgs84Ellipsoid.GetMinimumRadius ( )
inlinestatic

Gets the minimum radius of the ellipsoid in any dimension.

Returns
The minimum radius of the ellipsoid.

Definition at line 32 of file CesiumWgs84Ellipsoid.cs.

◆ GetRadii()

static partial double3 CesiumForUnity.CesiumWgs84Ellipsoid.GetRadii ( )
static

Gets the radii of the ellipsoid in its x-, y-, and z-directions.

Returns
The radii of the ellipsoid in its x-, y-, and z-directions.

◆ LongitudeLatitudeHeightToEarthCenteredEarthFixed()

static partial double3 CesiumForUnity.CesiumWgs84Ellipsoid.LongitudeLatitudeHeightToEarthCenteredEarthFixed ( double3 longitudeLatitudeHeight)
static

Convert longitude, latitude, and height to Earth-Centered, Earth-Fixed (ECEF) coordinates.

Parameters
longitudeLatitudeHeightThe longitude (X) and latitude (Y) are in degrees. The height (Z) is in meters above the ellipsoid, and should not be confused with a geoid, orthometric, or mean sea level height.
Returns
The ECEF coordinates in meters.

◆ ScaleToGeodeticSurface()

static partial? double3 CesiumForUnity.CesiumWgs84Ellipsoid.ScaleToGeodeticSurface ( double3 earthCenteredEarthFixed)
static

Scale the given Earth-Centered, Earth-Fixed position along the geodetic surface normal so that it is on the surface of the ellipsoid.

If the position is at the center of the ellipsoid, the result will be null.

Parameters
earthCenteredEarthFixedThe ECEF position in meters.
Returns
The scaled position, or null if the position is at the center of the ellipsoid.

The documentation for this class was generated from the following file: