Click or drag to resize

OrbitalElementsTryComputeEccentricity Method

Tries to calculate the eccentricity of the orbit.

Namespace:  AGI.Foundation.Coordinates
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 19.1.398.0 (19.1.398.0)
Syntax
public static bool TryComputeEccentricity(
	double radiusOfPeriapsis,
	double inverseSemimajorAxis,
	out double eccentricity
)

Parameters

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

Return Value

Type: Boolean
if the radiusOfPeriapsis is negative or zero, otherwise .
Remarks
The radiusOfPeriapsis and inverseSemimajorAxis parameters must have consistent units.
See Also