CelestialGet_Solar_Coordinate(DateTime, Double) Method
Gets solar coordinates based on UTC DateTime. Values are in degrees unless otherwise specified.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public static SolarCoordinates Get_Solar_Coordinate(
DateTime date,
double offset
)
- date DateTime
- UTC DateTime
- offset Double
- UTC Offset in Hours
SolarCoordinatesSolarCoordinates
The following example returns the coordinates of the sun based on the provided Local DateTime and UTC Offset.
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