UtilitiesFunctionslineSegmentsIntersectVersion: NextlineSegmentsIntersect CallablelineSegmentsIntersect(a: Point2D, b: Point2D, c: Point2D, d: Point2D): booleanTests whether two line segments intersect, including endpoint touches and collinear overlaps.Parametersa: Point2DFirst endpoint of the first segment.b: Point2DSecond endpoint of the first segment.c: Point2DFirst endpoint of the second segment.d: Point2DSecond endpoint of the second segment.Returns booleanTrue when the two finite segments intersect.
Tests whether two line segments intersect, including endpoint touches and collinear overlaps.