Commit 47283bd5 authored by Théo GORDYJAN's avatar Théo GORDYJAN

create_2nd_project

parent 9ae66768
import java.util.ArrayList;
import java.util.List;
public class Polygon {
private List<Point> points;
public Polygon(double x, double y) {
points = new ArrayList<>();
points.add(new Point(x, y));
}
public void addPoint(Point p){
points.add(p);
}
public void addPoints(List<Point> l){
points.addAll(l);
}
public List<Point> getPoints(){
return points;
}
}
public class Ray {
}
import org.junit.Test;
public class TestPolygon {
@Test
public void testCreatingPolygon() {
}
}
import org.junit.Test;
public class TestRay {
@Test
public void testCreatingRay() {
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment