Skip to main content
Version: Next

lineSegmentsIntersect

Callable


  • Tests whether two line segments intersect, including endpoint touches and collinear overlaps.


    Parameters

    • a: Point2D

      First endpoint of the first segment.

    • b: Point2D

      Second endpoint of the first segment.

    • c: Point2D

      First endpoint of the second segment.

    • d: Point2D

      Second endpoint of the second segment.

    Returns boolean

    True when the two finite segments intersect.