Class ChaosGameDescription
java.lang.Object
edu.ntnu.stud.chaosgame.model.game.ChaosGameDescription
Description of the chaos game, representing its mathematical properties.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Vector2D
The maximum coordinates.private final Vector2D
The minimum coordinates.private String
The name of the chaos game.private final List
<Transform2D> The affine transforms for this chaos game description. -
Constructor Summary
ConstructorsConstructorDescriptionChaosGameDescription
(Vector2D minCoords, Vector2D maxCoords, List<Transform2D> transforms) Constructor for ChaosGameDescription.ChaosGameDescription
(Vector2D minCoords, Vector2D maxCoords, List<Transform2D> transforms, String name) Parameterised constructor for ChaosGameDescription with name. -
Method Summary
Modifier and TypeMethodDescriptionGetter method for maximum coordinates.Getter method for minimum coordinates.getName()
Getter method for the name of the chaos game.Getter method for transforms.
-
Field Details
-
name
The name of the chaos game. -
minCoords
The minimum coordinates. -
maxCoords
The maximum coordinates. -
transforms
The affine transforms for this chaos game description.
-
-
Constructor Details
-
ChaosGameDescription
Constructor for ChaosGameDescription.- Parameters:
minCoords
- Inputs aVector2D
vector of lower left coordinates for the chaos game.maxCoords
- Inputs aVector2D
vector of upper right coordinates for the chaos game.transforms
- Inputs a list of transformationsAffineTransform2D
used in the chaos game.
-
ChaosGameDescription
public ChaosGameDescription(Vector2D minCoords, Vector2D maxCoords, List<Transform2D> transforms, String name) Parameterised constructor for ChaosGameDescription with name.- Parameters:
minCoords
- Inputs aVector2D
vector of lower left coordinates for the chaos game.maxCoords
- Inputs aVector2D
vector of upper right coordinates for the chaos game.transforms
- Inputs a list of transformationsAffineTransform2D
used in the chaos game.name
- the name of the chaos game description.
-
-
Method Details
-
getTransforms
Getter method for transforms.- Returns:
- Returns a list of transforms in the chaos game.
-
getMinCoords
Getter method for minimum coordinates.- Returns:
- Returns a Vector2D containing the minimum coordinates.
-
getMaxCoords
Getter method for maximum coordinates.- Returns:
- Returns a Vector2D containing the maximum coordinates.
-
getName
Getter method for the name of the chaos game.- Returns:
- the name of the chaos game description.
-