diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-02-11 20:31:44 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-05-02 21:36:44 +0200 |
commit | ab08b66105e90ff75eeff2d807e4da4db51870a7 (patch) | |
tree | 9b776078559a8b4c2cd8a97d0574d8844f9618c6 | |
parent | ad18f25a4feb7257b78b633b8f6b93d3f4d36800 (diff) | |
download | pucket-ab08b66105e90ff75eeff2d807e4da4db51870a7.tar.gz pucket-ab08b66105e90ff75eeff2d807e4da4db51870a7.tar.bz2 pucket-ab08b66105e90ff75eeff2d807e4da4db51870a7.zip |
Bugfixes for variations vectorization
-rw-r--r-- | variations.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/variations.c b/variations.c index b454653..27bd52c 100644 --- a/variations.c +++ b/variations.c @@ -1237,7 +1237,7 @@ static double2 var58_cell (const double2 in, const flam3_iter_helper * const f, } } - return weight * (a + b*f->xform->cell_size); + return weight * (a + b*f->xform->cell_size) * (double2) { 1.0, -1.0 }; } static double2 var59_cpow (const double2 in, const flam3_iter_helper * const f, double weight) { @@ -1713,7 +1713,7 @@ static double2 var85_cos (const double2 in, const flam3_iter_helper * const f, d sincos(in[0],&cossin,&coscos); cossinh = sinh(in[1]); coscosh = cosh(in[1]); - return weight * (double2) { coscos * coscosh, cossin * cossinh }; + return weight * (double2) { coscos * coscosh, -1.0 * cossin * cossinh }; } static double2 var86_tan (const double2 in, const flam3_iter_helper * const f, double weight) { @@ -1746,7 +1746,7 @@ static double2 var88_csc (const double2 in, const flam3_iter_helper * const f, d cscsinh = sinh(in[1]); csccosh = cosh(in[1]); cscden = 2.0/(cosh(2.0*in[1]) - cos(2.0*in[0])); - return weight * cscden * (double2) { cscsin * csccosh, csccos * cscsinh }; + return weight * cscden * (double2) { cscsin * csccosh, -1.0 * csccos * cscsinh }; } static double2 var89_cot (const double2 in, const flam3_iter_helper * const f, double weight) { @@ -1797,7 +1797,7 @@ static double2 var93_sech (const double2 in, const flam3_iter_helper * const f, sechsinh = sinh(in[0]); sechcosh = cosh(in[0]); sechden = 2.0/(cos(2.0*in[1]) + cosh(2.0*in[0])); - return weight * sechden * (double2) { sechcos * sechcosh, sechsin * sechsinh }; + return weight * sechden * (double2) { sechcos * sechcosh, -1.0 * sechsin * sechsinh }; } static double2 var94_csch (const double2 in, const flam3_iter_helper * const f, double weight) { @@ -1808,7 +1808,7 @@ static double2 var94_csch (const double2 in, const flam3_iter_helper * const f, cschsinh = sinh(in[0]); cschcosh = cosh(in[0]); cschden = 2.0/(cosh(2.0*in[0]) - cos(2.0*in[1])); - return weight * cschden * (double2) { cschsinh * cschcos, cschcosh * cschsin }; + return weight * cschden * (double2) { cschsinh * cschcos, -1.0 * cschcosh * cschsin }; } static double2 var95_coth (const double2 in, const flam3_iter_helper * const f, double weight) { |