public Mytriangle(int x1, int y1, int x2, int y2, int x3, int y3) { v1 = new Mypoint(x1, y1); v2 = new Mypoint(x2, y2); v3 = new Mypoint(x3, y3); }
public Mytriangle(Mypoint v1, Mypoint v2, Mypoint v3) { this.v1 = v1; this.v2 = v2; this.v3 = v3; }
public void setCenter(Mypoint newCenter) { this.center = newCenter; }
public Mycircle() { center = new Mypoint(0, 0); this.radius = 1; }
public Mycircle(Mypoint center, int radius) { this.center = center; this.radius = radius; }
public Mycircle(int x, int y, int radius) { center = new Mypoint(x, y); this.radius = radius; }
public double distance(Mypoint point) { return(distance(point.x, point.y)); }