libgravix2  0.1.0
A fast simulation of attractive forces acting on point-like particles embedded onto the surface of a sphere.
pot.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 struct GrvxVec3D;
13 struct GrvxPlanets;
14 
25 void grvx_gradV(struct GrvxVec3D *q, const struct GrvxPlanets *planets);
26 
34 double grvx_min_dist(const struct GrvxVec3D *q,
35  const struct GrvxPlanets *planets);
36 
37 #ifdef __cplusplus
38 } // extern "C"
39 #endif
double grvx_min_dist(const struct GrvxVec3D *q, const struct GrvxPlanets *planets)
Minimal distance to any planet.
Definition: pot.c:77
void grvx_gradV(struct GrvxVec3D *q, const struct GrvxPlanets *planets)
Gradient of the potential at position q.
Definition: pot.c:50
Set of planets.
Definition: planet.h:20
3D vector in cartesian representation.
Definition: linalg.h:15