isValidStaticCoord static method
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.
@param coord the coordinate to validate
@return true
if the coordinate is valid
Implementation
static bool isValidStaticCoord(Coordinate coord) {
if (coord.x.isNaN) return false;
if (coord.x.isInfinite) return false;
if (coord.y.isNaN) return false;
if (coord.y.isInfinite) return false;
return true;
}