1/**
2 * Mandelbulber v2, a 3D fractal generator  _%}}i*<.        ____                _______
3 * Copyright (C) 2020 Mandelbulber Team   _>]|=||i=i<,     / __ \___  ___ ___  / ___/ /
4 *                                        \><||i|=>>%)    / /_/ / _ \/ -_) _ \/ /__/ /__
5 * This file is part of Mandelbulber.     )<=i=]=|=i<>    \____/ .__/\__/_//_/\___/____/
6 * The project is licensed under GPLv3,   -<>>=|><|||`        /_/
7 * see also COPYING file in this folder.    ~+{i%+++
8 *
9 * From M3D. A formula made by Trafassel, the original Ide's Formula thread
10 * @reference http://www.fractalforums.com/videos/formula-21-%28julia-set-interpretation%29/
11
12 * This file has been autogenerated by tools/populateUiInformation.php
13 * from the file "fractal_ides2.cpp" in the folder formula/definition
14 * D O    N O T    E D I T    T H I S    F I L E !
15 */
16
17REAL4 Ides2Iteration(REAL4 z, __constant sFractalCl *fractal, sExtendedAuxCl *aux)
18{
19	Q_UNUSED(aux);
20
21	REAL4 z2 = z * z;
22	REAL4 newZ;
23	newZ.x = fractal->transformCommon.constantMultiplier121.x * z2.x
24					 - fractal->transformCommon.additionConstant0555.x * (z2.y + z2.z);
25	newZ.y = fractal->transformCommon.constantMultiplier121.y * z.x * z.y * z.z;
26	newZ.z = fractal->transformCommon.constantMultiplier121.z * z2.z
27					 - fractal->transformCommon.additionConstant0555.z * (z2.x + z2.y);
28	newZ.w = z.w;
29	z = newZ + z;
30	return z;
31}