contains method
Implementation
bool contains(Geometry geom) {
// the test geometry must be wholly contained in the rectangle envelope
if (!rectEnv.containsEnvelope(geom.getEnvelopeInternal())) return false;
/**
* Check that geom is not contained entirely in the rectangle boundary.
* According to the somewhat odd spec of the SFS, if this
* is the case the geometry is NOT contained.
*/
if (isContainedInBoundary(geom)) return false;
return true;
}