Пример #1
0
 public CircleS(double x, double y, double rad)
 {
     this.rad = rad;
     center   = new PointS(x, y);
 }
Пример #2
0
 public int Distance(PointS a, PointS b)
 {
     return((int)Math.Sqrt((a.X * a.X - b.X * b.X) + (a.Y * a.y - b.Y * b.Y)));
 }
Пример #3
0
 public double Distance(PointS other)
 {
     return(Math.Sqrt((x - other.x) * (x - other.x) + (y - other.y) * (y - other.y)));
 }