CelestialGetApogees Method
Returns Apogee object containing last and next apogees based on the specified UTC date.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public static Apogee GetApogees(
DateTime d
)
- d DateTime
- DateTime
ApogeeApogee
The following example gets the last and next lunar apogees from the specified date
and display's their DateTime and Distance.
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