Add possibility to calculate Moon South Node position

This commit is contained in:
2016-09-20 15:23:47 +02:00
parent aed102ea11
commit c0711d512d
3 changed files with 15 additions and 0 deletions

View File

@@ -1012,6 +1012,12 @@ gswe_moment_calculate_planet(GsweMoment *moment,
);
}
// The south node is actually on the opposite side of the chart,
// so lets invert the position.
if (planet == GSWE_PLANET_MOON_SOUTH_NODE) {
x2[0] = fmod(x2[0] + 180.0, 180.0);
}
calculate_data_by_position(moment, planet, x2[0], &calc_err);
if (calc_err != NULL) {