OrbitalElements.TryComputeEccentricity Method |
Tries to calculate the eccentricity 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 TryComputeEccentricity(
double radiusOfPeriapsis,
double inverseSemimajorAxis,
out double eccentricity
)
Public Shared Function TryComputeEccentricity (
radiusOfPeriapsis As Double,
inverseSemimajorAxis As Double,
<OutAttribute> ByRef eccentricity As Double
) As Boolean
public:
static bool TryComputeEccentricity(
double radiusOfPeriapsis,
double inverseSemimajorAxis,
[OutAttribute] double% eccentricity
)
static member TryComputeEccentricity :
radiusOfPeriapsis : float *
inverseSemimajorAxis : float *
eccentricity : float byref -> bool
Parameters
- radiusOfPeriapsis
- Type: System.Double
The radius of periapsis. - inverseSemimajorAxis
- Type: System.Double
The inverse of the semimajor axis. - eccentricity
- Type: System.Double
On return,
the eccentricity of the orbit.
Return Value
Type:
Booleanfalse if
radiusOfPeriapsis is negative or zero; otherwise
true.
RemarksradiusOfPeriapsis and inverseSemimajorAxis must have consistent units.
See Also