Class: Bounds

Bounds(min, max)

new Bounds(min, max)

The constructor.
Parameters:
Name Type Description
min XYCoords The min values (x,y) as a XYCoords tuple.
max XYCoords The max values (x,y) as a XYCoords tuple.
Source:

Methods

(static) computeFromVertices(vertices)

Compute the minimal bounding box for a given set of vertices. An empty vertex array will return an empty bounding box located at (0,0).
Parameters:
Name Type Description
vertices Array:.<Vertex:> The set of vertices you want to get the bounding box for.
Source:
Returns:
The minimal Bounds for the given vertices.