Skip to content

Function: transform() ​

ts
function transform(
   p, 
   radians, 
   offset
): Polygon;

Rotate by radians about the coordinate origin, then translate by offset.

Parameters ​

ParameterType
pPolygon
radiansnumber
offsetVec

Returns ​

Polygon

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