SegmentIntersector class

Computes the intersection of line segments, and adds the intersection to the edges containing the segments.

@version 1.7

Constructors

SegmentIntersector(LineIntersector li, bool includeProper, bool recordIsolated)

Properties

bdyNodes List<List>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addIntersections(Edge e0, int segIndex0, Edge e1, int segIndex1) → void
This method is called by clients of the EdgeIntersector class to test for and add intersections for two segments of the edges being intersected. Note that clients (such as MonotoneChainEdges) may choose not to intersect certain pairs of segments for efficiency reasons.
getProperIntersectionPoint() Coordinate?
@return the proper intersection point, or null if none was found
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.
isBoundaryPoint(LineIntersector li, List<List>? bdyNodes) bool
isBoundaryPointInternal(LineIntersector li, List<Node> bdyNodes) bool
isDone() bool
isTrivialIntersection(Edge e0, int segIndex0, Edge 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
setBoundaryNodes(List bdyNodes0, List bdyNodes1) → void
setIsDoneIfProperInt(bool isDoneWhenProperInt) → void
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