Click or drag to resize

OrbitalElements.TryComputeRadiusOfPeriapsis Method

Tries to calculate the radius of periapsis 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 TryComputeRadiusOfPeriapsis(
	double semilatusRectum,
	double eccentricity,
	out double radiusOfPeriapsis
)

Parameters

semilatusRectum
Type: System.Double
The semilatus rectum of the orbit (distance).
eccentricity
Type: System.Double
The eccentricity of the orbit.
radiusOfPeriapsis
Type: System.Double
On return, the radius of periapsis of the orbit.

Return Value

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