OrbitalElementsComputeRadiusOfPeriapsis Method |
Calculates the radius of periapsis of the orbit.
Namespace:
AGI.Foundation.Coordinates
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.2.423.0 (25.2.423.0)
Syntaxpublic static double ComputeRadiusOfPeriapsis(
double semilatusRectum,
double eccentricity
)
Public Shared Function ComputeRadiusOfPeriapsis (
semilatusRectum As Double,
eccentricity As Double
) As Double
public:
static double ComputeRadiusOfPeriapsis(
double semilatusRectum,
double eccentricity
)
static member ComputeRadiusOfPeriapsis :
semilatusRectum : float *
eccentricity : float -> float
Parameters
- semilatusRectum
- Type: SystemDouble
The semilatus rectum of the orbit (distance). - eccentricity
- Type: SystemDouble
The eccentricity of the orbit.
Return Value
Type:
DoubleThe radius of periapsis of the orbit.
Exceptions| Exception | Condition |
|---|
| ArgumentOutOfRangeException | Thrown when eccentricity is negative or semilatusRectum is negative or zero. |
RemarksThe result will be given in the same units as semilatusRectum.
See Also