Function VectorMath.SegmentsIntersect

SegmentsIntersect (Vector2Int start1, Vector2Int end1, Vector2Int start2, Vector2Int end2)

Returns if the line segment start2 - end2 intersects the line segment start1 - end1.

Public Static
bool SegmentsIntersect (

Vector2Int

start1

Vector2Int

end1

Vector2Int

start2

Vector2Int

end2

)

Returns if the line segment start2 - end2 intersects the line segment start1 - end1.

If only the endpoints coincide, the result is undefined (may be true or false).