Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

geos::operation::predicate::RectangleIntersects Class Reference

Optimized implementation of the "intersects" spatial predicate for cases where one Geometry is a rectangle. More...

#include <RectangleIntersects.h>

List of all members.

Public Member Functions

 RectangleIntersects (const geom::Polygon &newRect)
 Create a new intersects computer for a rectangle.
bool intersects (const geom::Geometry &geom)

Static Public Member Functions

bool intersects (const geom::Polygon &rectangle, const geom::Geometry &b)
 Tests whether a rectangle intersects a given geometry.


Detailed Description

Optimized implementation of the "intersects" spatial predicate for cases where one 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.


Constructor & Destructor Documentation

geos::operation::predicate::RectangleIntersects::RectangleIntersects const geom::Polygon newRect  )  [inline]
 

Create a new intersects computer for a rectangle.

Parameters:
newRect a rectangular geometry


Member Function Documentation

bool geos::operation::predicate::RectangleIntersects::intersects const geom::Polygon rectangle,
const geom::Geometry b
[inline, static]
 

Tests whether a rectangle intersects a given geometry.

Parameters:
rectangle a rectangular Polygon
b a Geometry of any type
Returns:
true if the geometries intersect


The documentation for this class was generated from the following file:
Generated on Tue Jun 5 11:39:13 2012 for GEOS by  doxygen 1.3.9.1