getBoundingBox method

Box3 getBoundingBox(
  1. Box3 target
)

Implementation

Box3 getBoundingBox(Box3 target) {
  if (isEmpty()) {
    // Empty sphere produces empty bounding box
    target.makeEmpty();
    return target;
  }

  target.set(center, center);
  target.expandByScalar(radius);

  return target;
}