Sun

Sun inherits Object

Sun provides methods for the Sun’s radius, gravitational parameter, directional vectors in WCS, ECI, and NED, and ECI location.

Static Methods

static double GRAVITATIONAL_PARAMETER()

Returns Sun’s gravitational parameter (1.32712440018E+20 m^3/s^2).

static double MEAN_RADIUS()

Returns the Sun’s mean (spherical) radius (6.963420E+8 m).

static Vec3 LocationECI(Calendar aCalendar)

Return the ECI vector pointing to the Sun (includes range).

static Vec3 LocationWCS(Calendar aCalendar)

Return the WCS vector pointing to the Sun (includes range).

static Array<double> LocationRA_Dec(Calendar aCalendar)

Return the right ascension and declination angles of the Sun.

Note

The right ascension will be the first value of the returned Array; the declination will be the second value.

static Vec3 UnitVecWCS(Calendar aCalendar)

Return the WCS unit vector pointing to the Sun.

static Vec3 UnitVecECI(Calendar aCalendar)

Return the ECI unit vector pointing to the Sun.

static Vec3 UnitVecNED(Calendar aCalendar, double aLatitude, double aLongitude)

Return the unit vector pointing to the Sun, given the latitude and longitude defining the local North-East-Down coordinate frame of reference.

static bool LineOfSight(Calendar aCalendar, Vec3 aLocationECI_1, Vec3 aLocationECI_2)

Returns whether the ECI locations’ line-of-sight with one another is blocked by the Sun.

static double Elevation(Calendar aCalendar, double aLatitude, double aLongitude)

Return the elevation (in degrees) of the sun at the given latitude and longitude.

static double Azimuth(Calendar aCalendar, double aLatitude, double aLongitude)

Return the azimuth (in degrees) of the sun at the given latitude and longitude. Returned value is in the range [0, 360].