--- title: intersectPolygonPolygon status: published category: primitives group: Function author: api date: 06/23/2023 order: 45 ---Public Function Create a new convex polygon as the intersection of two convex polygons. ##### Parameters `polygonA` ```ts VecLike[] ``` An array of points representing the first polygon. `polygonB` ```ts VecLike[] ``` An array of points representing the second polygon. ##### Returns ```ts null | VecLike[] ``` ##### References [VecLike](/gen/primitives/VecLike-type)