Class AffineTransform2D
java.lang.Object
edu.ntnu.stud.chaosgame.model.transformations.Transform2D
edu.ntnu.stud.chaosgame.model.transformations.AffineTransform2D
Represents affine transformations in a 2D-plane by extending the abstract
class Transform2D
Transform2D
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAffineTransform2D
(Matrix2x2 inputMatrix, Vector2D inputVector) Create a type of affine transformation. -
Method Summary
Modifier and TypeMethodDescriptionGetter method to use withChaosGameFileHandler
.Getter method to use withChaosGameFileHandler
.
-
Field Details
-
Constructor Details
-
Method Details
-
transform
Multiplies the matrixMatrix2x2
matrix by the vectorVector2D
vector and adds the vectorVector2D
point.- Specified by:
transform
in classTransform2D
- Parameters:
point
- The vectorVector2D
which transformations are performed on.- Returns:
- A new vector
Vector2D
which represents a point on a plane. The point represents a new step in the creation of fractal.
-
getMatrix
Getter method to use withChaosGameFileHandler
.- Returns:
- The matrix for the transformation.
-
getVector
Getter method to use withChaosGameFileHandler
.- Returns:
- The vector for the transformation.
-