* Returns the center point of this box. * * @param {Vector3} target - The target vector that is used to store the method's result. * @return {Vector3} The center point.
( target )
| 222 | * @return {Vector3} The center point. |
| 223 | */ |
| 224 | getCenter( target ) { |
| 225 | |
| 226 | return this.isEmpty() ? target.set( 0, 0, 0 ) : target.addVectors( this.min, this.max ).multiplyScalar( 0.5 ); |
| 227 | |
| 228 | } |
| 229 | |
| 230 | /** |
| 231 | * Returns the dimensions of this box. |
no test coverage detected