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: 18.4.397.0 (18.4.397.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 if the radiusOfPeriapsis is negative or zero.
Remarks
The radiusOfPeriapsis and inverseSemimajorAxis parameters must have consistent units.
See Also