Click or drag to resize

OrbitalElementsTryComputeSemimajorAxis Method

Tries to calculate the semimajor axis of the orbit.

Namespace:  AGI.Foundation.Coordinates
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public static bool TryComputeSemimajorAxis(
	double radiusOfPeriapsis,
	double eccentricity,
	out double semimajorAxis
)

Parameters

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

Return Value

Type: Boolean
if eccentricity is negative or radiusOfPeriapsis is negative or zero; otherwise .
Remarks
The result will be given in the same units as radiusOfPeriapsis.
See Also