Finds intersection of two convex polygons
[p12, area] = cv.intersectConvexConvex(p1, p2)
[...] = cv.intersectConvexConvex(..., 'OptionName',optionValue, ...)
Input
- p1 first polygon, stored in numeric array (Nx2/Nx1x2/1xNx2) or cell
array of 2-element vectors (
{[x,y], ...}
).
- p2 second polygon, stored in numeric array (Nx2/Nx1x2/1xNx2) or cell
array of 2-element vectors (
{[x,y], ...}
).
Output
- p12 intersection polygon points, a cell array of 2-element vectors
{[x,y], ...}
- a area
Options
- HandleNested default true