Click or drag to resize

CelestialGetApogees Method

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

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public static Apogee GetApogees(
	DateTime d
)

Parameters

d
Type: SystemDateTime
DateTime

Return Value

Type: Apogee
Apogee
Examples
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
See Also