BoundingRectangle Class
A BoundingRectangle delivers information on the size of a
Drawable2D on the screen.
The Bounding Rectangle of a Drawable2D is defined as follows:
- The Bounding Rectangle has it's edges parallel to the screen's edges.
- The Bounding Rectangle fully contains the Drawable2D
- The Bounding Rectangle of the Drawable2D is the smallest rectangle
containing the Drawable2D.
BoundingRectangle must not be directly instantiated by the developer.
Methods
getHeight
()
Number
Returns the height of the Drawable2D, in SDUs, after
applying translations on the Drawable2D.
Important:
getHeight()
does not deliver the actual height of the Drawable2D on
the screen.
Returns:
Number:
The height of the BoundingRectangle in SDUs.
getWidth
()
Number
Returns the width of the Drawable2D, in SDUs, after
applying translations on the Drawable2D.
Important:
getWidth() does
not deliver the actual width of the Drawable2D on the
screen.
Returns:
Number:
The width of the BoundingRectangle in SDUs.