Reformatted code
This commit is contained in:
parent
bec95321ac
commit
0177d8a9ae
|
@ -10,10 +10,6 @@ public class PythagorasTreeSeed {
|
|||
public double angle;
|
||||
public PythagorasTree.PythagorasTreeVariant variant;
|
||||
|
||||
public PythagorasTreeSeed() {
|
||||
|
||||
}
|
||||
|
||||
public PythagorasTreeSeed(double size, int loopSize, int depth, double angle, PythagorasTree.PythagorasTreeVariant variant) {
|
||||
this.size = size;
|
||||
this.loopSize = loopSize;
|
||||
|
|
|
@ -4,6 +4,7 @@ import Fractals.NumberCalculation.Fibonacci;
|
|||
|
||||
/**
|
||||
* Class Fractals.PythagorasTree.PythagorasTriangle
|
||||
*
|
||||
* @author Jan Christian Grünhage
|
||||
*/
|
||||
public class PythagorasTriangle {
|
||||
|
@ -73,12 +74,12 @@ public class PythagorasTriangle {
|
|||
if (index == 0 || index == 1) index = 2;
|
||||
double result_1;
|
||||
double result_2;
|
||||
result_1 = 100000000*Math.pow(index,(1/13));
|
||||
result_2 = 70000%index;
|
||||
result_1 = 100000000 * Math.pow(index, (1 / 13));
|
||||
result_2 = 70000 % index;
|
||||
result_2 = Math.cos(Math.tan(result_2));
|
||||
result_2 = index - Math.pow(result_2, 3);
|
||||
result_2 *= index + (1 / ( Math.pow(index, (1/17.3))));
|
||||
result_2 = Math.pow(result_2, (1/index));
|
||||
result_2 *= index + (1 / (Math.pow(index, (1 / 17.3))));
|
||||
result_2 = Math.pow(result_2, (1 / index));
|
||||
result_1 /= result_2;
|
||||
result_1 = result_1 % 30;
|
||||
result_1 += 30;
|
||||
|
|
Loading…
Reference in a new issue