intersectPolygonPolygon

Public Function

Create a new convex polygon as the intersection of two convex polygons.

Parameters
NameDescription

polygonA

VecLike[]

An array of points representing the first polygon.

polygonB

VecLike[]

An array of points representing the second polygon.

Returns
null | VecLike[]
References

VecLike

Edit this page
Last edited on 11 May 2023
intersectPolygonBoundsisAngleBetween