public static double distance(double deltaX,double deltaY){
  return Math.sqrt((deltaX * deltaX) + (deltaY * deltaY));
}

public static double distance ( double deltaX , double deltaY ) { return Math . sqrt ( ( deltaX * deltaX ) + ( deltaY * deltaY ) ) ; }
get the distance between two deltas
