Skip to content

Function: shapeCentroid() ​

ts
function shapeCentroid(s): Vec;

Centroid of a shape, holes included.

Parameters ​

ParameterType
sShape

Returns ​

Vec

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