getCenter method

Vector3 getCenter(
  1. Vector3 target
)

Implementation

Vector3 getCenter(Vector3 target) {
  if (isEmpty()) {
    target.set(0, 0, 0);
  } else {
    target.addVectors(min, max).multiplyScalar(0.5);
  }

  return target;
}