Skip to main content
RectangleXY
Defines a rectangle in 2d space - its x/y location, width and height, and optionally the computed center, but that can of course be calculated from the other values. Internally there are times when the code has this to hand so we include it here.
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