IntersectionAdder class
Computes the possible intersections between two line segments in {@link NodedSegmentString}s and adds them to each string using {@link NodedSegmentString#addIntersection(LineIntersector, int, int, int)}.
@version 1.7
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasInterior ↔ bool
-
getter/setter pair
- hasProper ↔ bool
-
getter/setter pair
- hasProperInterior ↔ bool
-
getter/setter pair
- isSelfIntersection ↔ bool
-
getter/setter pair
- li ↔ LineIntersector
-
getter/setter pair
- numInteriorIntersections ↔ int
-
getter/setter pair
- numIntersections ↔ int
-
getter/setter pair
- numProperIntersections ↔ int
-
getter/setter pair
- numTests ↔ int
-
getter/setter pair
- properIntersectionPoint ↔ Coordinate?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getLineIntersector(
) → LineIntersector -
getProperIntersectionPoint(
) → Coordinate? -
@return the proper intersection point, or
null
if none was found -
hasInteriorIntersection(
) → bool - An interior intersection is an intersection which is in the interior of some segment.
-
hasIntersection(
) → bool -
hasProperInteriorIntersection(
) → bool - A proper interior intersection is a proper intersection which is not contained in the set of boundary nodes set for this SegmentIntersector.
-
hasProperIntersection(
) → bool - A proper intersection is an intersection which is interior to at least two line segments. Note that a proper intersection is not necessarily in the interior of the entire Geometry, since another edge may have an endpoint equal to the intersection, which according to SFS semantics can result in the point being on the Boundary of the Geometry.
-
isDone(
) → bool -
Always process all intersections
override
-
isTrivialIntersection(
SegmentString e0, int segIndex0, SegmentString e1, int segIndex1) → bool - A trivial intersection is an apparent self-intersection which in fact is simply the point shared by adjacent line segments. Note that closed edges require a special check for the point shared by the beginning and end segments.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processIntersections(
SegmentString e0, int segIndex0, SegmentString e1, int segIndex1) → void -
This method is called by clients
of the {@link SegmentIntersector} class to process
intersections for two segments of the {@link SegmentString}s being intersected.
Note that some clients (such as
MonotoneChain
s) may optimize away this call for segment pairs which they have determined do not intersect (e.g. by an disjoint envelope test).override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isAdjacentSegments(
int i1, int i2) → bool