intersectPolygonPolygon
Public function
Create a new convex polygon as the intersection of two convex polygons.
Signature
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[]
References
Source