isPointContainedInBoundaryCoord method
Tests if a point is contained in the boundary of the target rectangle.
@param pt the point to test @return true if the point is contained in the boundary
Implementation
bool isPointContainedInBoundaryCoord(Coordinate pt) {
/**
* contains = false iff the point is properly contained in the rectangle.
*
* This code assumes that the point lies in the rectangle envelope
*/
return pt.x == rectEnv.getMinX() ||
pt.x == rectEnv.getMaxX() ||
pt.y == rectEnv.getMinY() ||
pt.y == rectEnv.getMaxY();
}