CelestialGet_Solar_Coordinate(DateTime) Method

Gets solar coordinates based on UTC DateTime. Values are in degrees unless otherwise specified.

Definition

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

Parameters

date  DateTime
UTC DateTime

Return Value

SolarCoordinates
SolarCoordinates

Example

The following example returns the coordinates of the sun based on the provided UTC DateTime.
C#
var celC = Celestial.Get_Solar_Coordinates(new DateTime(1992,4,12));

//PROPERTY VALUES
//RadiusVector: 1.00249723716304
//Longitude: 22.3395779176985
//Latitude: 0
//RightAscension: 20.6576437884708
//Declination: 8.69650660229221
//GeometricMeanLongitude: 20.4480824646839
//SubsolarLatitude: 8.69650660229221
//SubsolarLongitude: -179.790438676213

See Also