expandByVector method
vector - Vector3 to expand the box by.
Expands this box equilaterally by vector. The width of this
box will be expanded by the x component of vector in both
directions. The height of this box will be expanded by the y component of
vector in both directions. The depth of this box will be
expanded by the z component of vector in both directions.
Implementation
BoundingBox expandByVector(Vector3 vector) {
min.sub(vector);
max.add(vector);
return this;
}