Writes the axis-aligned bounding box of the polygon into out as a Box2 [minX, minY, maxX, maxY].
out
[minX, minY, maxX, maxY]
the box to store the result
polygon vertices as a flat array [x0, y0, x1, y1, ...]
[x0, y0, x1, y1, ...]
number of vertices to read from vertices
vertices
Writes the axis-aligned bounding box of the polygon into
outas a Box2[minX, minY, maxX, maxY].