Beispiel #1
0
 public bool equals(MyPoint MyPoint)
 {
     return((x == MyPoint.x) && (y == MyPoint.y));
 }
Beispiel #2
0
 public void translate(MyPoint MyPoint)
 {
     translate(MyPoint.x, MyPoint.y);
 }
Beispiel #3
0
 public MyPoint midMyPoint(MyPoint MyPoint)
 {
     return(new MyPoint((x + MyPoint.x) / 2, (y + MyPoint.y) / 2));
 }
Beispiel #4
0
 public MyPoint(MyPoint MyPoint)
 {
     x = MyPoint.x;
     y = MyPoint.y;
 }
Beispiel #5
0
 public Circle(MyPoint first, MyPoint second)
 {
     Center = new MyPoint((first.getX() + second.getX()) / 2, (first.getY() + second.getY()) / 2);
     radius = Center.distance(first);
 }
Beispiel #6
0
 public Circle(MyPoint Center)
 {
     this.Center = Center;
     this.radius = 0;
 }
Beispiel #7
0
 public Circle(MyPoint Center, double radius)
 {
     this.Center = Center;
     this.radius = radius;
 }
Beispiel #8
0
 public Circle()
 {
     this.Center = new MyPoint(0, 0);
     radius      = 0;
 }