Ejemplo n.º 1
0
		public double Distance (Point2D point1, Point2D point2)
		{
			return Math.Sqrt (Math.Abs (point1.X - point2.X) +
				Math.Abs (point1.Y - point2.Y));
		}
 public double Distance(Point2D point1, Point2D point2)
 {
     return(Math.Sqrt(Math.Abs(point1.X - point2.X) +
                      Math.Abs(point1.Y - point2.Y)));
 }
Ejemplo n.º 3
0
		public Point2D Move (Point2D point, Point2D delta)
		{
			return new AdvPoint2D (point.X + delta.X, point.Y + delta.Y);
		}
 public Point2D Move(Point2D point, Point2D delta)
 {
     return(new AdvPoint2D(point.X + delta.X, point.Y + delta.Y));
 }