|
@@ -85,6 +85,10 @@ export function Vertex ( x, y, z ) {
|
|
|
//
|
|
|
|
|
|
Object.assign( Box2.prototype, {
|
|
|
+ center: function ( optionalTarget ) {
|
|
|
+ console.warn( 'THREE.Box2: .center() has been renamed to .getCenter().' );
|
|
|
+ return this.getCenter( optionalTarget );
|
|
|
+ },
|
|
|
empty: function () {
|
|
|
console.warn( 'THREE.Box2: .empty() has been renamed to .isEmpty().' );
|
|
|
return this.isEmpty();
|
|
@@ -92,10 +96,18 @@ Object.assign( Box2.prototype, {
|
|
|
isIntersectionBox: function ( box ) {
|
|
|
console.warn( 'THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox().' );
|
|
|
return this.intersectsBox( box );
|
|
|
+ },
|
|
|
+ size: function ( optionalTarget ) {
|
|
|
+ console.warn( 'THREE.Box2: .size() has been renamed to .getSize().' );
|
|
|
+ return this.getSize( optionalTarget );
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
Object.assign( Box3.prototype, {
|
|
|
+ center: function ( optionalTarget ) {
|
|
|
+ console.warn( 'THREE.Box3: .center() has been renamed to .getCenter().' );
|
|
|
+ return this.getCenter( optionalTarget );
|
|
|
+ },
|
|
|
empty: function () {
|
|
|
console.warn( 'THREE.Box3: .empty() has been renamed to .isEmpty().' );
|
|
|
return this.isEmpty();
|
|
@@ -107,6 +119,10 @@ Object.assign( Box3.prototype, {
|
|
|
isIntersectionSphere: function ( sphere ) {
|
|
|
console.warn( 'THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere().' );
|
|
|
return this.intersectsSphere( sphere );
|
|
|
+ },
|
|
|
+ size: function ( optionalTarget ) {
|
|
|
+ console.warn( 'THREE.Box3: .size() has been renamed to .getSize().' );
|
|
|
+ return this.getSize( optionalTarget );
|
|
|
}
|
|
|
} );
|
|
|
|