interface Geometry · Shapes

Rectangle

interface Rectangle extends PolygonalShape

A polygon with four corners and right angles, which may be turned.

The first and the last corner are the ends of the base. The second and the third are the ends of the base moved by the height, to the left of the direction from the first corner to the last; in a graphic, where y grows downwards, that is above a base drawn from left to right. Rectangles creates rectangles (along a segment, at a pin, centered on a pin) and computes with them; a rectangle is accepted wherever a Polygon is.

Properties

geometricTypereadonly

geometricType: "Rectangle"

This property is only used for static typing. Evaluating it at run time returns undefined.

Inherited

From ReadOnlyCollection count

From Sequence at, elements, set, setAt

From Iterable [iterator]