Overview
Line Segment Intersection tests segment orientation and endpoint cases to decide whether two finite segments intersect.
Determines whether two line segments cross or touch.
Compact metadata for implementation and discovery.
Line Segment Intersection tests segment orientation and endpoint cases to decide whether two finite segments intersect.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(1)
Worst
O(1)
Space
O(1)
orientation(a, b, c) = sign(cross(b - a, c - a))Checks relative turn direction for segment intersection tests.
Show segment endpoints and orientation signs for crossing tests.
Most bugs in segment intersection come from degenerate cases, not from the general crossing case.
What each reference supports for this entry.
Computational geometry textbook reference for the predicates or constructions used by Line Segment Intersection.
Good next jumps from the relationship graph, ranked for useful discovery.
Geometry · Foundation
Segment intersection uses orientation tests to compare endpoint orderings.
Compare with thisGeometry · Core
It emits contour segments based on interpolated grid-edge crossings.
Compare with thisGeometry · Core
Polygon clipping computes intersections between polygon edges and clip boundaries.
Compare with thisGeometry · Extended
It inserts intersection points between polygon and clipping boundaries.
Compare with thisBentley-Ottmann reports segment intersections efficiently.
Sweep-line algorithms frequently use segment intersection predicates.