mightymandel
v16
GPU-based Mandelbrot set explorer
fp64_complex.glsl
Go to the documentation of this file.
1
// mightymandel -- GPU-based Mandelbrot Set explorer
2
// Copyright (C) 2012,2013,2014 Claude Heiland-Allen
3
// License GPL3+ http://www.gnu.org/licenses/gpl.html
4
5
double
cmag2
(dvec2 z) {
6
return
dot(z, z);
7
}
8
9
dvec2
csqr
(dvec2 z) {
10
return
dvec2(z.x * z.x - z.y * z.y, 2.0 * z.x * z.y);
11
}
12
13
dvec2
cmul
(dvec2 z, dvec2 w) {
14
return
dvec2(z.x * w.x - z.y * w.y, z.x * w.y + z.y * w.x);
15
}
src
fp64_complex.glsl
Generated on Mon Jan 19 2015 16:18:12 for mightymandel by
1.8.1.2