intersects spatial relationship predicate for a target PreparedLineString relative to other Geometry classes.
More...
#include <PreparedLineStringIntersects.h>
Public Member Functions | |
| PreparedLineStringIntersects (PreparedLineString &prep) | |
| bool | intersects (const geom::Geometry *g) const |
Static Public Member Functions | |
| static bool | intersects (PreparedLineString &prep, const geom::Geometry *geom) |
Protected Member Functions | |
| bool | isAnyTestPointInTarget (const geom::Geometry *testGeom) const |
Protected Attributes | |
| PreparedLineString & | prepLine |
intersects spatial relationship predicate for a target PreparedLineString relative to other Geometry classes.
Uses short-circuit tests and indexing to improve performance.
| geos::geom::prep::PreparedLineStringIntersects::PreparedLineStringIntersects | ( | PreparedLineString & | prep | ) | [inline] |
Referenced by intersects().
| bool geos::geom::prep::PreparedLineStringIntersects::intersects | ( | const geom::Geometry * | g | ) | const |
Tests whether this geometry intersects a given geometry.
| geom | the test geometry |
| static bool geos::geom::prep::PreparedLineStringIntersects::intersects | ( | PreparedLineString & | prep, | |
| const geom::Geometry * | geom | |||
| ) | [inline, static] |
This could be optimized by using the segment index on the lineal target. However, it seems like the L/P case would be pretty rare in practice. Computes the intersects predicate between a PreparedLineString and a Geometry.
| prep | the prepared linestring | |
| geom | a test geometry |
References intersects(), and PreparedLineStringIntersects().
Referenced by intersects().
| bool geos::geom::prep::PreparedLineStringIntersects::isAnyTestPointInTarget | ( | const geom::Geometry * | testGeom | ) | const [protected] |
1.5.9