Skip to main content

RotatedRectangle

Represents a rectangle with an optional rotation. The rotation is in degrees, and defaults to 0. The rotation is assumed to be around the center of the rectangle.

Extends​

Properties​

center?​

optional center: PointXY

Center of the box. In some cases the code has this information to hand and populates it, but if it is absent you can figure it out from the other values.

Inherited from​

RectangleXY.center


height​

height: number

element height

Inherited from​

RectangleXY.height


width​

width: number

Element width

Inherited from​

RectangleXY.width


x​

x: number

X location

Inherited from​

RectangleXY.x


y​

y: number

Y location

Inherited from​

RectangleXY.y