Calculates a BoundingBox from Vertex Array. Only takes positions into account.
The outter most vertices will be directly on the edge of the bounding box.
After this the padding will get added to all sides.

Parameters:

vertices Vertex Array. Positions are required only

padding Will get added to all sides (extends, after the calculation) should be 0 in most cases