Logo Search packages:      
Sourcecode: icu version File versions  Download package

The "age" of the moon at the time specified in this object. This is really the angle between the current ecliptic longitudes of the sun and the moon, measured in radians.

See also:
getMoonPhase

The "age" of the moon at the time specified in this object. This is really the angle between the current ecliptic longitudes of the sun and the moon, measured in radians.

See also:
getMoonPhase
Deprecated:
ICU 2.4. This class may be removed or modified.

Definition at line 1149 of file astro.cpp.

References getMoonPosition().

Referenced by getMoonPhase(), and IslamicCalendar::moonAge().

                                      {
    // See page 147 of "Practial Astronomy with your Calculator",
    // by Peter Duffet-Smith, for details on the algorithm.
    //
    // Force the moon's position to be calculated.  We're going to use
    // some the intermediate results cached during that calculation.
    //
    getMoonPosition();

    return norm2PI(moonEclipLong - 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