CelestialGetApogees Method

Returns Apogee object containing last and next apogees based on the specified UTC date.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 2.21.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static Apogee GetApogees(
	DateTime d
)

Parameters

d  DateTime
DateTime

Return Value

Apogee
Apogee

Example

The following example gets the last and next lunar apogees from the specified date and display's their DateTime and Distance.
C#
Apogee apogee = Celestial.GetApogees(new DateTime(2019,3,1));

Console.WriteLine(apogee.LastApogee.Date + " " + apogee.LastApogee.Distance.Kilometers); //2/5/2019 9:27:28 AM 406551.526207563
Console.WriteLine(apogee.NextApogee.Date + " " + apogee.NextApogee.Distance.Kilometers); //3/4/2019 11:26:35 AM 406387.933655865

See Also