question: 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 ; }
target:  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.