OrbitalElements.TryComputeSemimajorAxis Method |
Tries to calculate the semimajor axis 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)
Syntaxpublic static bool TryComputeSemimajorAxis(
double radiusOfPeriapsis,
double eccentricity,
out double semimajorAxis
)
Public Shared Function TryComputeSemimajorAxis (
radiusOfPeriapsis As Double,
eccentricity As Double,
<OutAttribute> ByRef semimajorAxis As Double
) As Boolean
public:
static bool TryComputeSemimajorAxis(
double radiusOfPeriapsis,
double eccentricity,
[OutAttribute] double% semimajorAxis
)
static member TryComputeSemimajorAxis :
radiusOfPeriapsis : float *
eccentricity : float *
semimajorAxis : float byref -> bool
Parameters
- radiusOfPeriapsis
- Type: System.Double
The radius of periapsis. - eccentricity
- Type: System.Double
The eccentricity of the orbit. - semimajorAxis
- Type: System.Double
On return,
the semimajor axis of the orbit.
Return Value
Type:
Booleanfalse if
eccentricity is negative or
radiusOfPeriapsis is negative or zero; otherwise
true.
RemarksThe result will be given in the same units as radiusOfPeriapsis.
See Also