aboutsummaryrefslogtreecommitdiff
path: root/src/path.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/path.h')
-rw-r--r--src/path.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.h b/src/path.h
index ed9591b..449088f 100644
--- a/src/path.h
+++ b/src/path.h
@@ -14,7 +14,7 @@
* FIXME: Should do some tests to figure out what is the best value. */
#define MIN_THETA0 0.01
-typedef double getKineticEnergyFunc(double x, double T0);
+typedef double getKineticEnergyFunc(double x, void *params);
typedef struct path {
double pos[3];
@@ -35,7 +35,7 @@ typedef struct path {
} path;
double path_get_coefficient(unsigned int k, double *s, double *x, double theta0, size_t n);
-path *path_init(double *pos, double *dir, double T0, double range, double theta0, getKineticEnergyFunc *fun, double *z1, double *z2, size_t n, double m);
+path *path_init(double *pos, double *dir, double T0, double range, double theta0, getKineticEnergyFunc *fun, void *params, double *z1, double *z2, size_t n, double m);
void path_eval(path *p, double s, double *pos, double *dir, double *T, double *t, double *theta0);
void path_free(path *p);