2using Unity.Mathematics;
8 [ReinteropNativeImplementation(
"CesiumForUnityNative::CesiumEllipsoidImpl",
"CesiumEllipsoidImpl.h")]
9 [IconAttribute(
"Packages/com.cesium.unity/Editor/Resources/Cesium-24x24.png")]
10 [CreateAssetMenu(menuName =
"Cesium/Ellipsoid")]
20 if (_cachedWgs84 ==
null)
22 _cachedWgs84 = CreateInstance<CesiumEllipsoid>();
23 _cachedWgs84.name =
"WGS84";
34 private double3 _radii =
new double3(1.0, 1.0, 1.0);
36 internal double3 radii
39 set => _radii = value;
69 public partial
void SetRadii(double3 newRadii);
static CesiumEllipsoid WGS84
Obtain a WGS84 ellipsoid.
double GetMaximumRadius()
Gets the maximum radius of the ellipsoid in any dimension.
partial double3 LongitudeLatitudeHeightToCenteredFixed(double3 longitudeLatitudeHeight)
Convert longitude, latitude, and height to Ellipsoid-Centered, Ellipsoid-Fixed (ECEF) coordinates.
double GetMinimumRadius()
Gets the minimum radius of the ellipsoid in any dimension.
partial double3 GeodeticSurfaceNormal(double3 ellipsoidCenteredEllipsoidFixed)
Computes the normal of the plane tangent to the surface of the ellipsoid at the provided Ellipsoid-Ce...
partial double3 GetRadii()
Returns the radii of this ellipsoid.
partial? double3 ScaleToGeodeticSurface(double3 ellipsoidCenteredEllipsoidFixed)
Scale the given Ellipsoid-Centered, Ellipsoid-Fixed (ECEF) position along the geodetic surface normal...
partial void SetRadii(double3 newRadii)
Sets the radii of this ellipsoid to the given values.
partial double3 CenteredFixedToLongitudeLatitudeHeight(double3 ellipsoidCenteredEllipsoidFixed)
Convert Ellipsoid-Centered, Ellipsoid-Fixed (ECEF) coordinates to longitude, latitude,...
Holds static methods for ellipsoid math and transforming between geospatial coordinate systems using ...
static partial double3 GetRadii()
Gets the radii of the ellipsoid in its x-, y-, and z-directions.