SurfaceShapes.ComputeEllipse Method (CentralBody, Cartesian, Double, Double, Double, Double) |
Computes boundary positions for an ellipse on the specified centralBody.
Namespace:
AGI.Foundation.Geometry.Discrete
Assembly:
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntaxpublic static SurfaceShapesResult ComputeEllipse(
CentralBody centralBody,
Cartesian center,
double majorAxisRadius,
double minorAxisRadius,
double bearing,
double granularity
)
Public Shared Function ComputeEllipse (
centralBody As CentralBody,
center As Cartesian,
majorAxisRadius As Double,
minorAxisRadius As Double,
bearing As Double,
granularity As Double
) As SurfaceShapesResult
public:
static SurfaceShapesResult^ ComputeEllipse(
CentralBody^ centralBody,
Cartesian center,
double majorAxisRadius,
double minorAxisRadius,
double bearing,
double granularity
)
static member ComputeEllipse :
centralBody : CentralBody *
center : Cartesian *
majorAxisRadius : float *
minorAxisRadius : float *
bearing : float *
granularity : float -> SurfaceShapesResult
Parameters
- centralBody
- Type: AGI.Foundation.Celestial.CentralBody
The central body to compute the ellipse on. - center
- Type: AGI.Foundation.Coordinates.Cartesian
The center of the ellipse, in the centralBody's fixed reference frame. - majorAxisRadius
- Type: System.Double
The radius of the ellipse's major axis, in meters. - minorAxisRadius
- Type: System.Double
The radius of the ellipse's minor axis, in meters. - bearing
- Type: System.Double
An angle, in radians, measured clockwise from north. - granularity
- Type: System.Double
The angular separation, in radians, of positions along the boundary.
Return Value
Type:
SurfaceShapesResultA
SurfaceShapesResult object representing the boundary of the ellipse, in the
centralBody's fixed reference frame.
Exceptions
Remarks
The computed positions are at the same altitude as the input center.
Lower granularities are more precise but result in more positions.
See Also