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.
NameTypeDescription
center?PointXYCenter 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.
heightnumberelement height
widthnumberElement width
xnumberX location
ynumberY location