Finds an interior intersection in a set of SegmentString, if one exists. Only the first intersection found is reported.
More...
#include <SingleInteriorIntersectionFinder.h>
Finds an interior intersection in a set of SegmentString, if one exists. Only the first intersection found is reported.
- Version
- 1.7
◆ SingleInteriorIntersectionFinder()
Creates an intersection finder which finds an interior intersection if one exists.
- Parameters
-
li | the LineIntersector to use |
◆ getInteriorIntersection()
const geom::Coordinate& geos::noding::SingleInteriorIntersectionFinder::getInteriorIntersection |
( |
| ) |
const |
|
inline |
Gets the computed location of the intersection. Due to round-off, the location may not be exact.
- Returns
- the coordinate for the intersection location
◆ getIntersectionSegments()
const std::vector<geom::Coordinate>& geos::noding::SingleInteriorIntersectionFinder::getIntersectionSegments |
( |
| ) |
const |
|
inline |
Gets the endpoints of the intersecting segments.
- Returns
- an array of the segment endpoints (p00, p01, p10, p11)
◆ hasIntersection()
bool geos::noding::SingleInteriorIntersectionFinder::hasIntersection |
( |
| ) |
const |
|
inline |
Tests whether an intersection was found.
- Returns
- true if an intersection was found
◆ isDone()
bool geos::noding::SingleInteriorIntersectionFinder::isDone |
( |
| ) |
const |
|
inlinevirtual |
Reports whether the client of this class needs to continue testing all intersections in an arrangement.
- Returns
- true if there is not need to continue testing segments
The default implementation always return false (process all intersections).
Reimplemented from geos::noding::SegmentIntersector.
◆ processIntersections()
void geos::noding::SingleInteriorIntersectionFinder::processIntersections |
( |
SegmentString * |
e0, |
|
|
int |
segIndex0, |
|
|
SegmentString * |
e1, |
|
|
int |
segIndex1 |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following file: