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