Click or drag to resize

OrbitalElementsComputeEccentricity Method

Calculates the eccentricity of the orbit.

Namespace:  AGI.Foundation.Coordinates
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static double ComputeEccentricity(
	double radiusOfPeriapsis,
	double inverseSemimajorAxis
)

Parameters

radiusOfPeriapsis
Type: SystemDouble
The radius of periapsis.
inverseSemimajorAxis
Type: SystemDouble
The inverse of the semimajor axis.

Return Value

Type: Double
The eccentricity of the orbit.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown when radiusOfPeriapsis is negative or zero.
Remarks
radiusOfPeriapsis and inverseSemimajorAxis must have consistent units.
See Also