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

Describes a curve that's a section of an ellipse that lies on a plane intersecting the center of the earth and both the source and destination points on an ellipsoid. More...

Public Member Functions

partial double3 GetPosition (double percentage, double additionalHeight=0.0)
 Samples the curve at the given percentage of its length.
 

Static Public Member Functions

static CesiumSimplePlanarEllipsoidCurve FromEarthCenteredEarthFixedCoordinates (CesiumEllipsoid ellipsoid, double3 sourceEcef, double3 destinationEcef)
 
static CesiumSimplePlanarEllipsoidCurve FromCenteredFixedCoordinates (CesiumEllipsoid ellipsoid, double3 sourceEcef, double3 destinationEcef)
 Creates a new CesiumSimplePlanarEllipsoidCurve object from a pair of Ellipsoid-Centered, Ellipsoid-Fixed coordinates describing the beginning and end points of the curve.
 
static CesiumSimplePlanarEllipsoidCurve FromLongituteLatitudeHeight (CesiumEllipsoid ellipsoid, double3 sourceLlh, double3 destinationLlh)
 Creates a new CesiumSimplePlanarEllipsoidCurve object from a pair of cartographic coordinates (Longitude, Latitude, and Height) describing the beginning and end points of the curve.
 

Detailed Description

Describes a curve that's a section of an ellipse that lies on a plane intersecting the center of the earth and both the source and destination points on an ellipsoid.

This curve can be sampled at any point along its length.

Definition at line 14 of file CesiumSimplePlanarEllipsoidCurve.cs.

Member Function Documentation

◆ FromCenteredFixedCoordinates()

static CesiumSimplePlanarEllipsoidCurve CesiumForUnity.CesiumSimplePlanarEllipsoidCurve.FromCenteredFixedCoordinates ( CesiumEllipsoid ellipsoid,
double3 sourceEcef,
double3 destinationEcef )
inlinestatic

Creates a new CesiumSimplePlanarEllipsoidCurve object from a pair of Ellipsoid-Centered, Ellipsoid-Fixed coordinates describing the beginning and end points of the curve.

Parameters
ellipsoidThe ellipsoid to use for this curve.
sourceEcefThe start point of the curve.
destinationEcefThe end point of the curve.
Returns
A CesiumSimplePlanarEllipsoidCurve if a curve can successfully be created between the two points, or null otherwise.

Definition at line 35 of file CesiumSimplePlanarEllipsoidCurve.cs.

◆ FromEarthCenteredEarthFixedCoordinates()

static CesiumSimplePlanarEllipsoidCurve CesiumForUnity.CesiumSimplePlanarEllipsoidCurve.FromEarthCenteredEarthFixedCoordinates ( CesiumEllipsoid ellipsoid,
double3 sourceEcef,
double3 destinationEcef )
inlinestatic

Definition at line 17 of file CesiumSimplePlanarEllipsoidCurve.cs.

◆ FromLongituteLatitudeHeight()

static CesiumSimplePlanarEllipsoidCurve CesiumForUnity.CesiumSimplePlanarEllipsoidCurve.FromLongituteLatitudeHeight ( CesiumEllipsoid ellipsoid,
double3 sourceLlh,
double3 destinationLlh )
inlinestatic

Creates a new CesiumSimplePlanarEllipsoidCurve object from a pair of cartographic coordinates (Longitude, Latitude, and Height) describing the beginning and end points of the curve.

Parameters
ellipsoidThe ellipsoid to use for this curve.
sourceLlhThe start point of the curve.
destinationLlhThe end point of the curve.
Returns
A CesiumSimplePlanarEllipsoidCurve if a curve can successfully be created between the two points, or null otherwise.

Definition at line 57 of file CesiumSimplePlanarEllipsoidCurve.cs.

◆ GetPosition()

partial double3 CesiumForUnity.CesiumSimplePlanarEllipsoidCurve.GetPosition ( double percentage,
double additionalHeight = 0.0 )

Samples the curve at the given percentage of its length.

Parameters
percentageThe percentage of the curve's length to sample at, where 0 is the beginning and 1 is the end. This value will be clamped to the range [0..1].
additionalHeightThe height above the earth at this position will be calculated by interpolating between the height at the beginning and end points of the curve, based on the value of percentage . This parameter specifies an additional offset to add to the height at this position.
Returns
The position of the given point on this curve in Earth-Centered, Earth-Fixed coordinates.

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