Polygon constructor
Implementation
Polygon(this.corners, this.edges, this.radii)
: assert(
edges.length == corners.length,
'There should be equal number of edges and corners',
),
assert(
radii.length == corners.length,
'There should be equal number corners and their respective radius for each corner',
);