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

    Function pathCircleIntersects

    • Test whether the circle given by the center and radius intersects the path (open or closed).

      Parameters

      • points: number[] | Point[]

        The points of the path

      • close: boolean

        If true, the edge from the last to the first point of the path is tested

      • center: Point

        The center of the circle

      • radius: number

        The radius of the circle

      Returns boolean

      Does the circle intersect the path?