Optimized implementation of the
contains spatial predicate for cases where the first
Geometry is a rectangle. This class works for all input geometries, including
GeometryCollections.
As a further optimization, this class can be used to test many geometries against a single rectangle in a slightly more efficient way.