Click or drag to resize

OrbitalElements.TryComputeEccentricity Method

Tries to calculate 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 bool TryComputeEccentricity(
	double radiusOfPeriapsis,
	double inverseSemimajorAxis,
	out double eccentricity
)

Parameters

radiusOfPeriapsis
Type: System.Double
The radius of periapsis.
inverseSemimajorAxis
Type: System.Double
The inverse of the semimajor axis.
eccentricity
Type: System.Double
On return, the eccentricity of the orbit.

Return Value

Type: Boolean
false if radiusOfPeriapsis is negative or zero; otherwise true.
Remarks
radiusOfPeriapsis and inverseSemimajorAxis must have consistent units.
See Also