setFromCenterAndSize method

Box3 setFromCenterAndSize(
  1. Vector3 center,
  2. Vector3 size
)

Implementation

Box3 setFromCenterAndSize(Vector3 center, Vector3 size) {
  var halfSize = _vectorBox3.copy(size).multiplyScalar(0.5);

  min.copy(center).sub(halfSize);
  max.copy(center).add(halfSize);

  return this;
}