Skip to content

Function: outsetPolygon() ​

ts
function outsetPolygon(poly, distance): Polygon;

Grow a simple polygon by moving every edge outward by distance (mitred corners; pockets narrower than 2 × distance close up). Positively oriented.

Parameters ​

ParameterType
polyPolygon
distancenumber

Returns ​

Polygon

Hat tiling and isohedral tilings after Craig S. Kaplan's hatviz and Tactile (BSD 3-Clause).