Skip to content

editor / areFreeShapePoints

Function: areFreeShapePoints() ​

areFreeShapePoints(points): boolean

Defined in: model/are-free-shape-points.ts:17

Whether the stored points of a free shape can enter the model: at least 3, with finite coordinates (fractions allowed, ADR-0033), spanning a box of positive width and height, without which no size can be drawn (DERIV-free-shape-stretch step 2, ADR-0032).

Parameters ​

points ​

readonly Point[]

stored points, in contour order

Returns ​

boolean

true when they are allowed

Kind ​

domain

See ​

DERIV-free-shape-stretch