Class JuliaTransform
java.lang.Object
edu.ntnu.stud.chaosgame.model.transformations.Transform2D
edu.ntnu.stud.chaosgame.model.transformations.JuliaTransform
Represents Julia transformations in a 2D-plane by extending the abstract
class Transform2D
Transform2D
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJuliaTransform
(Complex point, int sign) Constructs a JuliaTransform object defined by the input. -
Method Summary
-
Field Details
-
Constructor Details
-
JuliaTransform
Constructs a JuliaTransform object defined by the input.- Parameters:
point
- The complex numberComplex
which is added or subtracted in the transformation.sign
- An integer which determines if c1 is added or subtracted in the transformation.
-
-
Method Details
-
transform
Performs a Julia-transformation on a point defined by the vector point. The transformation will add or subtract c1 relative to point. This depends on the sign of the integer sign. Then the method performs the sqrt method from ComplexComplex
.- Specified by:
transform
in classTransform2D
- Parameters:
point
- The vectorVector2D
which transformations are performed on.- Returns:
- The transformed point, represented by a vector
Vector2D
-
getC1
Getter method to use withChaosGameFileHandler
.- Returns:
- The complex number used in the transformation.
-