gradum-kit - v0.1.0
    Preparing search index...

    Function polygonsIntersect

    • Function

      polygonsIntersect

      Parameters

      • a: Point[]

        The first polygon's vertices.

      • b: Point[]

        The second polygon's vertices.

      Returns boolean

      true if the polygons overlap.

      Check whether two convex polygons overlap, using the separating-axis test in both directions. Note: both polygons must be convex.