CelestialGetPerigees Method
Returns Perigee object containing last and next perigees 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 Perigee GetPerigees(
DateTime d
)
- d DateTime
- DateTime
PerigeePerigee
The following example gets the last and next lunar perigees from the specified date
and display's their DateTime and Distance.
Perigee perigee = Celestial.GetPerigees(new DateTime(2019, 3, 1));
Console.WriteLine(perigee.LastPerigee.Date + " " + perigee.LastPerigee.Distance.Kilometers); //2/19/2019 9:06:55 AM 356762.812526435
Console.WriteLine(perigee.NextPerigee.Date + " " + perigee.NextPerigee.Distance.Kilometers); //3/19/2019 7:48:22 PM 359378.005775414