libgravix2  0.1.0
A fast simulation of attractive forces acting on point-like particles embedded onto the surface of a sphere.
planet.c File Reference
#include "libgravix2/planet.h"
#include <math.h>
#include <stddef.h>
#include <stdlib.h>
#include "libgravix2/api.h"
Include dependency graph for planet.c:

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...
 

Function Documentation

◆ grvx_get_planet()

int grvx_get_planet ( GrvxPlanetsHandle  p,
unsigned  i,
double *  lat,
double *  lon 
)

◆ grvx_new_planets()

GrvxPlanetsHandle grvx_new_planets ( unsigned  n)

◆ grvx_set_planet()

int grvx_set_planet ( GrvxPlanetsHandle  p,
unsigned  i,
double  lat,
double  lon 
)