expandByPoint method

BoundingBox expandByPoint(
  1. Vector3 point
)

point - Vector3 that should be included in the box.

Expands the boundaries of this box to include point.

Implementation

BoundingBox expandByPoint(Vector3 point) {
  min.min(point);
  max.max(point);

  return this;
}