Whether two closed segments share any point, touching included.
Touching counts because a region whose rings meet at one point is not two
regions with a shared corner; it is a surface pinched to a line, the same
shape buildAutoMovieWall refuses when two openings meet at a corner. A
proper crossing needs each segment's endpoints on strictly opposite sides of
the other's line, each side more than PLANAR_EPSILON from zero; otherwise
the segments meet when an endpoint of one is collinear with the other within
that absolute tolerance and its projection parameter lies in [0, 1] widened
by the same constant. A zero-length segment never reports a touch through
its own projection.
Whether two closed segments share any point, touching included.
Touching counts because a region whose rings meet at one point is not two regions with a shared corner; it is a surface pinched to a line, the same shape
buildAutoMovieWallrefuses when two openings meet at a corner. A proper crossing needs each segment's endpoints on strictly opposite sides of the other's line, each side more thanPLANAR_EPSILONfrom zero; otherwise the segments meet when an endpoint of one is collinear with the other within that absolute tolerance and its projection parameter lies in [0, 1] widened by the same constant. A zero-length segment never reports a touch through its own projection.