Click or drag to resize

OrbitalElements.ComputeEccentricity Method

Calculates the eccentricity of the orbit.

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

Parameters

radiusOfPeriapsis
Type: System.Double
The radius of periapsis.
inverseSemimajorAxis
Type: System.Double
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