Skip to content
Snippets Groups Projects
Commit ded8294f authored by dv/d's avatar dv/d
Browse files

added circumscribe method

parent a29db84d
No related branches found
No related tags found
1 merge request!1Project
package lab1.graphics;
import java.util.Arrays;
import java.util.ArrayList;
public class Ellipse extends Shape{
......@@ -47,4 +46,9 @@ public class Ellipse extends Shape{
params=start_s+"\n"+axis_s+"\n"+center_s+"\n"+end_s;
return params;
}
@Override
public Ellipse circumscribe() {
return new Ellipse(points.get(0), Math.max(a, b), Math.max(a, b));
}
}
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