are_segments_intersecting#

static GeometryOperators.are_segments_intersecting(a1, a2, b1, b2, include_collinear=True)#

Determine if the two segments a and b are intersecting.

a1List

First point of segment a. List of [x, y] coordinates.

a2List

Second point of segment a. List of [x, y] coordinates.

b1List

First point of segment b. List of [x, y] coordinates.

b2List

Second point of segment b. List of [x, y] coordinates.

include_collinearbool

If True two segments are considered intersecting also if just one end lies on the other segment. Default is True.

Returns:
bool

True if the segments are intersecting. False otherwise.