AutoMovie API
    Preparing search index...

    Function planarSegmentsMeet

    • 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.

      Parameters

      Returns boolean

      True when the closed segments share a point within tolerance.