Skip to content

Function: containsPolygon() ​

ts
function containsPolygon(
   outer, 
   inner, 
   tol?
): boolean;

True if every vertex of inner lies inside (or on) convex polygon outer.

Parameters ​

ParameterTypeDefault value
outerPolygonundefined
innerPolygonundefined
tolnumber1e-9

Returns ​

boolean

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