Skip to content

editor / isSoundStretch

Function: isSoundStretch() ​

isSoundStretch(polygon): boolean

Defined in: geometry/is-sound-stretch.ts:15

Whether every corner of a polygon, drawn clockwise on screen, turns at least half of the turn of a regular polygon of as many corners, π/n (the corner guard of rule C, Product Owner, DERIV-stretched-polygon step 3). A NaN coordinate gives a NaN turn, which fails.

Parameters ​

polygon ​

readonly Point[]

vertices in drawing order, clockwise on screen

Returns ​

boolean

true when no corner turns less than π/n

Kind ​

geometry

See ​

DERIV-stretched-polygon