Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Function lineSegmentIntersects

    • Quickly test whether the line segment AB intersects with the line segment CD. This method does not determine the point of intersection, for that use lineLineIntersection.

      Parameters

      • a: Point

        The first endpoint of segment AB

      • b: Point

        The second endpoint of segment AB

      • c: Point

        The first endpoint of segment CD

      • d: Point

        The second endpoint of segment CD

      Returns boolean

      Do the line segments intersect?