public static boolean isValid(Coordinate coord){
  if (Double.isNaN(coord.x))   return false;
  if (Double.isInfinite(coord.x))   return false;
  if (Double.isNaN(coord.y))   return false;
  if (Double.isInfinite(coord.y))   return false;
  return true;
}

public static boolean isValid ( Coordinate coord ) { if ( Double . isNaN ( coord . x ) ) return false ; if ( Double . isInfinite ( coord . x ) ) return false ; if ( Double . isNaN ( coord . y ) ) return false ; if ( Double . isInfinite ( coord . y ) ) return false ; return true ; }
checks whether a coordinate is valid for processing . coordinates are valid iff their x and y ordinates are in the range of the floating point representation .
