Skip to content
Snippets Groups Projects
Commit 5f4caba9 authored by John Doe's avatar John Doe
Browse files

Second commit

parent 92ce468a
No related branches found
No related tags found
No related merge requests found
public record Circle(int x, int y, Vector2D radius) implements Shape{
}
\ No newline at end of file
sealed interface Polygon{
sealed interface Polygon extends Shape permits Regular, Arbitrary, Star {
}
\ No newline at end of file
sealed interface Shape{
sealed interface Shape permits Circle, Polygon{
SvgElement toSvg();
}
\ No newline at end of file
......@@ -23,9 +23,6 @@ public record Vector2D(private double x, private double y){
this.x * Math.sin(radAngle) + this.y * Math.sin(radAngle) )
}
public Vector2D rotate(int degAlpha){
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment