public static double distance(Point p1,Point p2){
  return distance(Math.abs(p2.x - p1.x),Math.abs(p2.y - p1.y));
}

public static double distance ( Point p1 , Point p2 ) { return distance ( Math . abs ( p2 . x - p1 . x ) , Math . abs ( p2 . y - p1 . y ) ) ; }
get the distance between two points
