OrbitalElementsTryComputeRadiusOfApoapsis Method |
Tries to calculate the radius of apoapsis 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 TryComputeRadiusOfApoapsis(
double radiusOfPeriapsis,
double eccentricity,
out double radiusOfApoapsis
)
Public Shared Function TryComputeRadiusOfApoapsis (
radiusOfPeriapsis As Double,
eccentricity As Double,
<OutAttribute> ByRef radiusOfApoapsis As Double
) As Boolean
public:
static bool TryComputeRadiusOfApoapsis(
double radiusOfPeriapsis,
double eccentricity,
[OutAttribute] double% radiusOfApoapsis
)
static member TryComputeRadiusOfApoapsis :
radiusOfPeriapsis : float *
eccentricity : float *
radiusOfApoapsis : float byref -> bool
Parameters
- radiusOfPeriapsis
- Type: SystemDouble
The radius of periapsis of the orbit (distance). - eccentricity
- Type: SystemDouble
The eccentricity of the orbit. - radiusOfApoapsis
- Type: SystemDouble
On return,
the radius of apoapsis 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