#include "libgravix2/planet.h"#include <math.h>#include <stddef.h>#include <stdlib.h>#include "libgravix2/api.h"
Functions | |
| GrvxPlanetsHandle | grvx_new_planets (unsigned n) |
| void | grvx_delete_planets (GrvxPlanetsHandle p) |
| Deletes all planets of the associated handle and frees the allocated memory. More... | |
| unsigned | grvx_count_planets (GrvxPlanetsHandle p) |
| Counts the planets. More... | |
| int | grvx_set_planet (GrvxPlanetsHandle p, unsigned i, double lat, double lon) |
| int | grvx_get_planet (GrvxPlanetsHandle p, unsigned i, double *lat, double *lon) |
| unsigned | grvx_pop_planet (GrvxPlanetsHandle p) |
| Removes the last planet from the universe. More... | |
| int grvx_get_planet | ( | GrvxPlanetsHandle | p, |
| unsigned | i, | ||
| double * | lat, | ||
| double * | lon | ||
| ) |
| GrvxPlanetsHandle grvx_new_planets | ( | unsigned | n | ) |
| int grvx_set_planet | ( | GrvxPlanetsHandle | p, |
| unsigned | i, | ||
| double | lat, | ||
| double | lon | ||
| ) |