Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
CesiumWgs84Ellipsoid.cs
Go to the documentation of this file.
1using Reinterop;
2using UnityEngine;
3using Unity.Mathematics;
4
5namespace CesiumForUnity
6{
10 [ReinteropNativeImplementation("CesiumForUnityNative::CesiumWgs84EllipsoidImpl", "CesiumWgs84EllipsoidImpl.h", staticOnly: true)]
11 public static partial class CesiumWgs84Ellipsoid
12 {
17 public static partial double3 GetRadii();
18
23 public static double GetMaximumRadius()
24 {
25 return math.cmax(CesiumWgs84Ellipsoid.GetRadii());
26 }
27
32 public static double GetMinimumRadius()
33 {
34 return math.cmin(CesiumWgs84Ellipsoid.GetRadii());
35 }
36
44 public static partial double3? ScaleToGeodeticSurface(double3 earthCenteredEarthFixed);
45
52 public static partial double3 GeodeticSurfaceNormal(double3 earthCenteredEarthFixed);
53
61 public static partial double3
62 LongitudeLatitudeHeightToEarthCenteredEarthFixed(double3 longitudeLatitudeHeight);
63
72 public static partial double3
73 EarthCenteredEarthFixedToLongitudeLatitudeHeight(double3 earthCenteredEarthFixed);
74 }
75}
Holds static methods for ellipsoid math and transforming between geospatial coordinate systems using ...
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.
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 partial? double3 ScaleToGeodeticSurface(double3 earthCenteredEarthFixed)
Scale the given Earth-Centered, Earth-Fixed position along the geodetic surface normal so that it is ...
static partial double3 GeodeticSurfaceNormal(double3 earthCenteredEarthFixed)
Computes the normal of the plane tangent to the surface of the ellipsoid at the provided Earth-Center...
static double GetMinimumRadius()
Gets the minimum radius of the ellipsoid in any dimension.