intersectPolygonPolygon
Create a new convex polygon as the intersection of two convex polygons.
function intersectPolygonPolygon(
polygonA: VecLike[],
polygonB: VecLike[]
): null | VecLike[]
Parameters
Name | Description |
---|---|
|
An array of points representing the first polygon. |
|
An array of points representing the second polygon. |
Returns
null | VecLike[]