Skip to content

editor / regularPolygonCorners

Function: regularPolygonCorners() ​

regularPolygonCorners(polygon): readonly Corner[]

Defined in: model/regular-polygon-corners.ts:17

Straight corners of a regular polygon, placed at its position: each vertex of its contour with its requested radius (ADR-0029), clamped later by the geometry of F01 (ADR-0007, Q8); its angle is not applied (turnedCorners, ADR-0035).

Parameters ​

polygon ​

RegularPolygon

valid polygon (isValidRegularPolygon)

Returns ​

readonly Corner[]

one corner per vertex, in drawing order

Kind ​

domain

See ​

docs/domain/shapes.md#regular-polygon