OrbitalElementsTryComputeSemilatusRectum Method |
Tries to calculate the semilatus rectum of the orbit.
Namespace:
AGI.Foundation.Coordinates
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public static bool TryComputeSemilatusRectum(
double radiusOfPeriapsis,
double eccentricity,
out double semilatusRectum
)
Public Shared Function TryComputeSemilatusRectum (
radiusOfPeriapsis As Double,
eccentricity As Double,
<OutAttribute> ByRef semilatusRectum As Double
) As Boolean
public:
static bool TryComputeSemilatusRectum(
double radiusOfPeriapsis,
double eccentricity,
[OutAttribute] double% semilatusRectum
)
static member TryComputeSemilatusRectum :
radiusOfPeriapsis : float *
eccentricity : float *
semilatusRectum : float byref -> bool
Parameters
- radiusOfPeriapsis
- Type: SystemDouble
The radius of periapsis. - eccentricity
- Type: SystemDouble
The eccentricity of the orbit. - semilatusRectum
- Type: SystemDouble
On return,
the semilatus rectum 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