Skip to content
Snippets Groups Projects
Commit 975772e6 authored by Håvard Daleng's avatar Håvard Daleng
Browse files

Made minor changes

parent e2e8d658
No related branches found
No related tags found
No related merge requests found
package edu.ntnu.stud.chaosgame.game;
public class ChaosCanvas {
}
package edu.ntnu.stud.chaosgame.game;
public class ChaosGame {
}
package edu.ntnu.stud.chaosgame.game;
import edu.ntnu.stud.chaosgame.model.Vector2D;
import edu.ntnu.stud.chaosgame.transformations.Transform2D;
import edu.ntnu.stud.chaosgame.model.AffineTransform2D;
import java.util.List;
public class ChaosGameDescription {
private final Vector2D minCoords;
private final Vector2D maxCoords;
private final List<Transform2D> transforms;
private final List<AffineTransform2D> transforms;
/**
* Constructor for ChaosGameDescription
* @param minCoords Inputs a {@link Vector2D} vector of lower left coordinates for the chaos game.
* @param maxCoords Inputs a {@link Vector2D} vector of upper right coordinates for the chaos game.
* @param transforms Inputs a list of transformations {@link Transform2D} used in the chaos game.
* @param transforms Inputs a list of transformations {@link AffineTransform2D} used in the chaos game.
*/
public ChaosGameDescription(Vector2D minCoords, Vector2D maxCoords, List<Transform2D> transforms) {
public ChaosGameDescription(Vector2D minCoords, Vector2D maxCoords, List<AffineTransform2D> transforms) {
if (minCoords == null || maxCoords == null || transforms == null){
throw new IllegalArgumentException("Coordinates and transforms must not be null.");
}
......@@ -29,7 +30,7 @@ public class ChaosGameDescription {
* Getter method for transforms
* @return Returns a list of transforms in the chaos game.
*/
public List<Transform2D> getTransforms(){
public List<AffineTransform2D> getTransforms(){
return transforms;
}
/**
......
......@@ -3,9 +3,9 @@ package edu.ntnu.stud.chaosgame.game;
import edu.ntnu.stud.chaosgame.model.Complex;
import edu.ntnu.stud.chaosgame.model.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.Vector2D;
import edu.ntnu.stud.chaosgame.transformations.AffineTransform2D;
import edu.ntnu.stud.chaosgame.transformations.JuliaTransform;
import edu.ntnu.stud.chaosgame.transformations.Transform2D;
import edu.ntnu.stud.chaosgame.model.transformations.AffineTransform2D;
import edu.ntnu.stud.chaosgame.model.transformations.JuliaTransform;
import edu.ntnu.stud.chaosgame.model.transformations.Transform2D;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
......
......@@ -28,7 +28,7 @@ class AffineTransform2DTest {
}
@Nested
@DisplayName("Positive Affine Transform Tests")
class PositiveAffineTransform2DTest{
class PositiveAffineTransform2DTest {
@Test
void transform() {
Vector2D point = new Vector2D(1, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment