Skip to content

Function: rectPolygon() ​

ts
function rectPolygon(
   x, 
   y, 
   width, 
   height
): Polygon;

Polygon for an axis-aligned rectangle, in positive orientation.

Parameters ​

ParameterType
xnumber
ynumber
widthnumber
heightnumber

Returns ​

Polygon

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