Calculates the 2D axis-aligned bounding box for a set of vertices.
Accepts an array of Vertex2d or Vertex3d objects and computes the minimum and maximum x and y coordinates, returning them as the corners of the bounding box.
Vertex2d
Vertex3d
An array of vertices, each being either Vertex2d or Vertex3d.
An object containing min and max properties, each a Vertex2d representing the lower-left and upper-right corners of the bounding box, respectively.
min
max
Calculates the 2D axis-aligned bounding box for a set of vertices.
Accepts an array of
Vertex2d
orVertex3d
objects and computes the minimum and maximum x and y coordinates, returning them as the corners of the bounding box.