Class ChaosGameDescription

java.lang.Object
edu.ntnu.stud.chaosgame.model.game.ChaosGameDescription

public class ChaosGameDescription extends Object
Description of the chaos game, representing its mathematical properties.
  • Field Details

    • name

      private String name
      The name of the chaos game.
    • minCoords

      private final Vector2D minCoords
      The minimum coordinates.
    • maxCoords

      private final Vector2D maxCoords
      The maximum coordinates.
    • transforms

      private final List<Transform2D> transforms
      The affine transforms for this chaos game description.
  • Constructor Details

    • ChaosGameDescription

      public ChaosGameDescription(Vector2D minCoords, Vector2D maxCoords, List<Transform2D> transforms)
      Constructor for ChaosGameDescription.
      Parameters:
      minCoords - Inputs a Vector2D vector of lower left coordinates for the chaos game.
      maxCoords - Inputs a Vector2D vector of upper right coordinates for the chaos game.
      transforms - Inputs a list of transformations AffineTransform2D 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 a Vector2D vector of lower left coordinates for the chaos game.
      maxCoords - Inputs a Vector2D vector of upper right coordinates for the chaos game.
      transforms - Inputs a list of transformations AffineTransform2D used in the chaos game.
      name - the name of the chaos game description.
  • Method Details

    • getTransforms

      public List<Transform2D> getTransforms()
      Getter method for transforms.
      Returns:
      Returns a list of transforms in the chaos game.
    • getMinCoords

      public Vector2D getMinCoords()
      Getter method for minimum coordinates.
      Returns:
      Returns a Vector2D containing the minimum coordinates.
    • getMaxCoords

      public Vector2D getMaxCoords()
      Getter method for maximum coordinates.
      Returns:
      Returns a Vector2D containing the maximum coordinates.
    • getName

      public String getName()
      Getter method for the name of the chaos game.
      Returns:
      the name of the chaos game description.