public double Distance(PointS second) { double dx = X - second.X; double dy = Y - second.Y; return(Math.Sqrt(dx * dx + dy * dy)); }
public static double Distance(PointS p1, PointS p2) { double dx = p1.X - p2.X; double dy = p1.Y - p2.Y; return(Math.Sqrt(dx * dx + dy * dy)); }
public CircleS(double x, double y, double r) { center = new PointS(x, y); radius = r; }
public CircleS(double x, double y, double radius) { center = new PointS(x, y); this.radius = radius; }