Add possibility to calculate Moon South Node position
This commit is contained in:
parent
aed102ea11
commit
c0711d512d
@ -1012,6 +1012,12 @@ gswe_moment_calculate_planet(GsweMoment *moment,
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The south node is actually on the opposite side of the chart,
|
||||||
|
// so let’s 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);
|
calculate_data_by_position(moment, planet, x2[0], &calc_err);
|
||||||
|
|
||||||
if (calc_err != NULL) {
|
if (calc_err != NULL) {
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
* @GSWE_PLANET_VERTEX: the Vertex (the point where the ecliptic meats the
|
* @GSWE_PLANET_VERTEX: the Vertex (the point where the ecliptic meats the
|
||||||
* primal vertical)
|
* primal vertical)
|
||||||
* @GSWE_PLANET_MOON_NODE: the mean ascending (north) Moon node
|
* @GSWE_PLANET_MOON_NODE: the mean ascending (north) Moon node
|
||||||
|
* @GSWE_PLANET_MOON_SOUTH_NODE: the mean descending (south) Moon node
|
||||||
* @GSWE_PLANET_MOON_APOGEE: the mean Moon apogee (sometimes called Dark Moon,
|
* @GSWE_PLANET_MOON_APOGEE: the mean Moon apogee (sometimes called Dark Moon,
|
||||||
* or Lilith)
|
* or Lilith)
|
||||||
* @GSWE_PLANET_SUN: the Sun
|
* @GSWE_PLANET_SUN: the Sun
|
||||||
@ -78,6 +79,7 @@ typedef enum {
|
|||||||
GSWE_PLANET_VERTEX,
|
GSWE_PLANET_VERTEX,
|
||||||
GSWE_PLANET_MOON_NODE,
|
GSWE_PLANET_MOON_NODE,
|
||||||
GSWE_PLANET_MOON_APOGEE,
|
GSWE_PLANET_MOON_APOGEE,
|
||||||
|
GSWE_PLANET_MOON_SOUTH_NODE,
|
||||||
|
|
||||||
/* Actual astrological planets */
|
/* Actual astrological planets */
|
||||||
GSWE_PLANET_SUN = 11,
|
GSWE_PLANET_SUN = 11,
|
||||||
|
@ -202,6 +202,13 @@ void gswe_init_with_dir(gchar *directory)
|
|||||||
2.0,
|
2.0,
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
|
ADD_PLANET(gswe_planet_info_table, planet_info,
|
||||||
|
GSWE_PLANET_MOON_SOUTH_NODE,
|
||||||
|
SE_MEAN_NODE,
|
||||||
|
TRUE,
|
||||||
|
_("Descending Moon Node"),
|
||||||
|
2.0,
|
||||||
|
0);
|
||||||
ADD_PLANET(gswe_planet_info_table, planet_info,
|
ADD_PLANET(gswe_planet_info_table, planet_info,
|
||||||
GSWE_PLANET_MOON_APOGEE,
|
GSWE_PLANET_MOON_APOGEE,
|
||||||
SE_MEAN_APOG,
|
SE_MEAN_APOG,
|
||||||
|
Loading…
Reference in New Issue
Block a user