Skip to content

editor / rectangleContour

Function: rectangleContour() ​

rectangleContour(rectangle): readonly Point[]

Defined in: model/rectangle-contour.ts:17

Straight contour of a rectangle: the free shape the rectangle tool makes (ADR-0032), i.e. (x, y), (x + width, y), (x + width, y + height), (x, y + height), clockwise from the top-left vertex (Q11); its angle is not applied (turnedCorners, ADR-0035).

Parameters ​

rectangle ​

Rectangle

width and height, integers ≥ 0

Returns ​

readonly Point[]

its four vertices, in contour order

Kind ​

domain

See ​

DERIV-free-shape-stretch