diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-08-31 10:39:14 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-08-31 10:39:14 -0500 |
commit | d40984d4ded654004f6e5c0dc5a9d29ba41fb6e9 (patch) | |
tree | 7abad0573318ea68507c7233e64df0c9cb6eab6d /src/path.h | |
parent | 83119fe9bb0c9c2a70ea5397aca9968bde7ffa07 (diff) | |
download | sddm-d40984d4ded654004f6e5c0dc5a9d29ba41fb6e9.tar.gz sddm-d40984d4ded654004f6e5c0dc5a9d29ba41fb6e9.tar.bz2 sddm-d40984d4ded654004f6e5c0dc5a9d29ba41fb6e9.zip |
use interp1d() to interpolate path to speed things up
Diffstat (limited to 'src/path.h')
-rw-r--r-- | src/path.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -9,8 +9,16 @@ typedef struct path { double pos[3]; double dir[3]; double theta0; - gsl_interp_accel *acc[8]; - gsl_spline *spline[8]; + + double *s; + double *x; + double *y; + double *z; + double *T; + double *t; + double *dx; + double *dy; + double *dz; } path; double path_get_coefficient(unsigned int k, double *s, double *x, double theta0, size_t n); |