findStabbedSegments3 method
Finds all non-horizontal segments intersecting the stabbing line in the list of dirEdges. The stabbing line is the ray to the right of stabbingRayLeftPt.
@param stabbingRayLeftPt the left-hand origin of the stabbing line @param stabbedSegments the current list of {@link DepthSegments} intersecting the stabbing line
Implementation
void findStabbedSegments3(
Coordinate stabbingRayLeftPt, List dirEdges, List stabbedSegments) {
/**
* Check all forward DirectedEdges only. This is still general,
* because each Edge has a forward DirectedEdge.
*/
for (DirectedEdge de in dirEdges) {
if (!de.isForward()) continue;
findStabbedSegmentsDE(stabbingRayLeftPt, de, stabbedSegments);
}
}