public class CircularCurve extends Curve{ // The circle in the complex plane private double x, y; // coordinates of the center of the circle private double r; // radius of the circle public CircularCurve (double x, double y, double r) { set(x,y,r); } public void set (double x, double y, double r) { this.x = x; this.y = y; this.r = r; } public double x(double t) { return x + r*Math.cos(t); } public double y(double t) { return y + r*Math.sin(t); } }