Function: clipConvex()
ts
function clipConvex(subject, clip): Polygon;Intersection of subject (any simple polygon) with a convex clip polygon. If a non-convex subject is cut into separate parts, they come back as one polygon joined by zero-width strips along the clip edge; use clipPolygonToConvex to get the parts separately.
Parameters
| Parameter | Type |
|---|---|
subject | Polygon |
clip | Polygon |