Readonly
heightBounds
Readonly
maxBounds
Readonly
minBounds
Readonly
widthBounds
Generate a random point inside this bounds object. Safe areas at the border to avoid included.
A pseudo random point inside these bounds.
randomPoint
Bounds
Static
computeCompute the minimal bounding box for a given set of vertices.
An empty vertex array will return an empty bounding box located at (0,0).
The set of vertices you want to get the bounding box for.
The minimal Bounds for the given vertices.
computeFromVertices
Bounds
Static
fromCreate a new Bounds
instance just from width
and height
, located at (0,0) or the optionally given origin.
The width of the bounds
The height of the bounds
Optional
origin: XYCoords[optional] A origin to locate the new Bounds object at.
A new Bounds
instance width given width and height, located at (0,0) or the given origin..
Classdesc
A bounds class with min and max values. Implementing IBounds.
Requires
XYCoords
Requires
Vertex
Requires
IBounds