double CalendarAstronomer::getSunLongitude | ( | ) |

The longitude of the sun at the time specified by this object. The longitude is measured in radians along the ecliptic from the "first point of Aries," the point at which the ecliptic crosses the earth's equatorial plane at the vernal equinox.

Currently, this method uses an approximation of the two-body Kepler's equation for the earth and the sun. It does not take into account the perturbations caused by the other planets, the moon, etc.

The longitude of the sun at the time specified by this object. The longitude is measured in radians along the ecliptic from the "first point of Aries," the point at which the ecliptic crosses the earth's equatorial plane at the vernal equinox.

Currently, this method uses an approximation of the two-body Kepler's equation for the earth and the sun. It does not take into account the perturbations caused by the other planets, the moon, etc.

**Deprecated:**- ICU 2.4. This class may be removed or modified.

Definition at line 623 of file astro.cpp.

References getJulianDay().

Referenced by getMoonPosition(), getSunPosition(), and ChineseCalendar::majorSolarTerm().

{ // See page 86 of "Practial Astronomy with your Calculator", // by Peter Duffet-Smith, for details on the algorithm. if (isINVALID(sunLongitude)) { getSunLongitude(getJulianDay(), sunLongitude, meanAnomalySun); } return sunLongitude; }

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by Doxygen 1.6.0 Back to index