|
@@ -550,6 +550,9 @@ export default QUnit.module( 'Maths', () => {
|
|
|
assert.ok( b.getBoundingSphere( sphere ).equals( new Sphere( one3.clone().multiplyScalar( 0.5 ), Math.sqrt( 3 ) * 0.5 ) ), 'Passed!' );
|
|
|
assert.ok( c.getBoundingSphere( sphere ).equals( new Sphere( zero3, Math.sqrt( 12 ) * 0.5 ) ), 'Passed!' );
|
|
|
|
|
|
+ const d = new Box3().makeEmpty();
|
|
|
+ assert.ok( d.getBoundingSphere( sphere ).isEmpty(), 'Empty box\'s bounding sphere is empty' );
|
|
|
+
|
|
|
} );
|
|
|
|
|
|
QUnit.test( 'intersect', ( assert ) => {
|