494d13bba3
The added Seed Class is containing the information needed for building a tree. With this it is possible to have nice I/O when running the application without arguments but adding the possibility to run the application with arguments for nearly no I/O, without having much code twice
23 lines
563 B
Java
23 lines
563 B
Java
/**
|
|
* Created by Christian on 11.02.2015.
|
|
*/
|
|
public class PythagorasTreeSeed {
|
|
public double size;
|
|
public int loopSize;
|
|
public int depth;
|
|
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;
|
|
this.depth = depth;
|
|
this.angle = angle;
|
|
this.variant = variant;
|
|
}
|
|
}
|