editor / rectangleContour
Function: rectangleContour()
rectangleContour(
rectangle): readonlyPoint[]
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
width and height, integers ≥ 0
Returns
readonly Point[]
its four vertices, in contour order
Kind
domain
See
DERIV-free-shape-stretch