From 334e82a0a23db8a5c0816756021611bfffe2fa26 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 12 Feb 2015 15:43:26 +0100 Subject: Vectorize c and post matrices as well apply_xform --- flam3.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'flam3.h') diff --git a/flam3.h b/flam3.h index a66e40e..4135701 100644 --- a/flam3.h +++ b/flam3.h @@ -207,11 +207,12 @@ typedef struct { } flam3_image_store; +#include "vector.h" typedef struct xform { double var[flam3_nvariations]; /* interp coefs between variations */ - double c[3][2]; /* the coefs to the affine part of the function */ - double post[3][2]; /* the post transform */ + double2 c[3]; /* the coefs to the affine part of the function */ + double2 post[3]; /* the post transform */ double density; /* probability that this function is chosen. 0 - 1 */ double color; /* color coords for this function. 0 - 1 */ double color_speed; /* scaling factor on color added to current iteration */ @@ -420,8 +421,7 @@ typedef struct xform { double radialBlur_zoomvar; /* Precalculate these values for waves */ - double waves_dx2; - double waves_dy2; + double2 waves_d2; /* If disc2 is used, precalculate these values */ double disc2_sinadd; -- cgit v1.2.3