提交 2e37f117 编写于 作者: M Mr.doob

Box2/Box3: Renamed .empty() to .isEmpty().

上级 38a056f6
......@@ -3,6 +3,12 @@
*/
Object.defineProperties( THREE.Box2.prototype, {
empty: {
value: function () {
console.warn( 'THREE.Box2: .empty() has been renamed to .isEmpty().' );
return this.isEmpty();
}
},
isIntersectionBox: {
value: function ( box ) {
console.warn( 'THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox().' );
......@@ -12,6 +18,12 @@ Object.defineProperties( THREE.Box2.prototype, {
} );
Object.defineProperties( THREE.Box3.prototype, {
empty: {
value: function () {
console.warn( 'THREE.Box3: .empty() has been renamed to .isEmpty().' );
return this.isEmpty();
}
},
isIntersectionBox: {
value: function ( box ) {
console.warn( 'THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox().' );
......
......@@ -76,7 +76,7 @@ THREE.Box2.prototype = {
},
empty: function () {
isEmpty: function () {
// this is a more robust check for empty than ( volume <= 0 ) because volume can get positive with two negative axes
......
......@@ -121,7 +121,7 @@ THREE.Box3.prototype = {
},
empty: function () {
isEmpty: function () {
// this is a more robust check for empty than ( volume <= 0 ) because volume can get positive with two negative axes
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册