(split from Astrognome)Created planetary calculation functionality
This commit is contained in:
@@ -41,6 +41,25 @@ typedef struct _GsweCoordinates {
|
||||
gdouble altitude;
|
||||
} GsweCoordinates;
|
||||
|
||||
/**
|
||||
* GswePlanetData:
|
||||
* @planet_id: A GswePlanet, the identifier of the planet
|
||||
* @planet_info: A GswePlanetInfo structure, holding every information about the planet
|
||||
* @position: The longitude position of the planet
|
||||
* @house: Number of the house in which the planet is in
|
||||
* @sign: A GsweSignInfo structure, holding every information about the sign the planet is in
|
||||
* @revision: An internal version number of the calculation
|
||||
*/
|
||||
typedef struct {
|
||||
GswePlanet planet_id;
|
||||
GswePlanetInfo *planet_info;
|
||||
gdouble position;
|
||||
gboolean retrograde;
|
||||
gint house;
|
||||
GsweSignInfo *sign;
|
||||
guint revision;
|
||||
} GswePlanetData;
|
||||
|
||||
struct _GsweMoment {
|
||||
/* Parent instance structure */
|
||||
GObject parent_instance;
|
||||
@@ -69,6 +88,12 @@ GsweMoment *gswe_moment_new(void);
|
||||
GsweMoment *gswe_moment_new_full(GsweTimestamp *timestamp, gdouble longitude, gdouble latitude, gdouble altitude, GsweHouseSystem house_system);
|
||||
void gswe_moment_set_timestamp(GsweMoment *moment, GsweTimestamp *timestamp);
|
||||
GList *gswe_moment_get_house_cusps(GsweMoment *moment);
|
||||
gint gswe_moment_get_house(GsweMoment *moment, gdouble position);
|
||||
gboolean gswe_moment_has_planet(GsweMoment *moment, GswePlanet planet);
|
||||
void gswe_moment_add_planet(GsweMoment *moment, GswePlanet planet);
|
||||
void gswe_moment_add_all_planets(GsweMoment *moment);
|
||||
GList *gswe_moment_get_planets(GsweMoment *moment);
|
||||
GswePlanetData *gswe_moment_get_planet(GsweMoment *moment, GswePlanet planet);
|
||||
|
||||
#endif /* __GSWE_MOMENT_H__ */
|
||||
|
||||
|
Reference in New Issue
Block a user