Tests whether the two closed segments a-b and c-d intersect. Collinear (overlapping) segments are treated as non-intersecting; touching at an endpoint counts as an intersection.
first endpoint of the first segment
second endpoint of the first segment
first endpoint of the second segment
second endpoint of the second segment
true if the segments intersect
Tests whether the two closed segments a-b and c-d intersect. Collinear (overlapping) segments are treated as non-intersecting; touching at an endpoint counts as an intersection.