summaryrefslogtreecommitdiff
path: root/interpolation.h
diff options
context:
space:
mode:
Diffstat (limited to 'interpolation.h')
-rw-r--r--interpolation.h34
1 files changed, 4 insertions, 30 deletions
diff --git a/interpolation.h b/interpolation.h
index 21e333e..747d029 100644
--- a/interpolation.h
+++ b/interpolation.h
@@ -15,45 +15,19 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef interpolation_included
-#define interpolation_included
+#pragma once
-#include "private.h"
+#include "math.h"
+#include "flam3.h"
-#define INTERP(x) do { result->x = 0.0; \
- for (k = 0; k < ncp; k++) result->x += c[k] * cpi[k].x; } while(0)
-
-#define INTERI(x) do { double tt = 0.0; \
- for (k = 0; k < ncp; k++) tt += c[k] * cpi[k].x; \
- result->x = (int)rint(tt); } while(0)
-
-double adjust_percentage(double in);
-double motion_funcs(int funcnum, double timeval);
-
-double smoother(double t);
-double get_stagger_coef(double t, double stagger_prc, int num_xforms, int this_xform);
-
-double det_matrix(double s[2][2]);
int id_matrix(double2 s[3]);
-int zero_matrix(double2 s[3]);
-void copy_matrix(double to[3][2], double from[3][2]);
-void clear_matrix(double2 m[3]);
-void sum_matrix(double s, const double2 m1[3], double2 m2[3]);
-void mult_matrix(double s1[2][2], double s2[2][2], double d[2][2]);
-
-int compare_xforms(const void *av, const void *bv);
+double det_matrix(double s[2][2]);
#if 0
void interpolate_cmap(flam3_palette cmap, double blend,
int index0, double hue0, int index1, double hue1, randctx * const);
#endif
-void interp_and_convert_back(double *c, int ncps, int xfi, double cxang[4][2],
- double cxmag[4][2], double cxtrn[4][2],double store_array[3][2]);
-void convert_linear_to_polar(flam3_genome *cp, int ncps, int xfi, int cflag,
- double cxang[4][2], double cxmag[4][2], double cxtrn[4][2]);
void interpolate_catmull_rom(flam3_genome cps[], double t, flam3_genome *result);
void flam3_interpolate_n(flam3_genome *result, int ncp, flam3_genome *cpi, double *c, double stagger);
-void establish_asymmetric_refangles(flam3_genome *cp, int ncps);
void flam3_align(flam3_genome *dst, flam3_genome *src, int nsrc);
-#endif