Clone this bounds object (create a deep clone).
Creates a deep clone of this bounds object.
Get the center of this boinding box.
The center of these bounds.
Generate a random point inside this bounds object. Safe areas at the border to avoid included.
A pseudo random point inside these bounds.
Convert this rectangular bounding box to a polygon with four vertices.
This bound rectangle as a polygon.
Convert these bounds to a human readable form.
Note: the returned format might change in the future, so please do not rely on the returned string format.
Get these bounds in a human readable form.
Create a new
Bounds instance just from
height, located at (0,0) or the optionally given origin.
The width of the bounds
The height of the bounds
[optional] A origin to locate the new Bounds object at.
Bounds instance width given width and height, located at (0,0) or the given origin..
Generated using TypeDoc