CelestialGet_Solar_Coordinate(DateTime, Double) 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,
	double offset
)

Parameters

date  DateTime
UTC DateTime
offset  Double
UTC Offset in Hours

Return Value

SolarCoordinates
SolarCoordinates

Example

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

//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