Function: insetConvex()
ts
function insetConvex(poly, distance): Polygon;Shrink a convex polygon by moving every edge inward by distance. Implemented as a half-plane intersection, so edges that collapse simply vanish and an over-inset polygon returns [].
Parameters
| Parameter | Type |
|---|---|
poly | Polygon |
distance | number |