|
@@ -24,7 +24,7 @@ THREE.Matrix4 = function () {
|
|
|
|
|
|
if ( arguments.length > 0 ) {
|
|
|
|
|
|
- console.error( 'THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.' );
|
|
|
+ THREE.error( 'THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.' );
|
|
|
|
|
|
}
|
|
|
|
|
@@ -72,7 +72,7 @@ THREE.Matrix4.prototype = {
|
|
|
|
|
|
extractPosition: function ( m ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .extractPosition() has been renamed to .copyPosition().' );
|
|
|
+ THREE.warn( 'THREE.Matrix4: .extractPosition() has been renamed to .copyPosition().' );
|
|
|
return this.copyPosition( m );
|
|
|
|
|
|
},
|
|
@@ -150,7 +150,7 @@ THREE.Matrix4.prototype = {
|
|
|
|
|
|
if ( euler instanceof THREE.Euler === false ) {
|
|
|
|
|
|
- console.error( 'THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' );
|
|
|
+ THREE.error( 'THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' );
|
|
|
|
|
|
}
|
|
|
|
|
@@ -276,7 +276,7 @@ THREE.Matrix4.prototype = {
|
|
|
|
|
|
setRotationFromQuaternion: function ( q ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion().' );
|
|
|
+ THREE.warn( 'THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion().' );
|
|
|
|
|
|
return this.makeRotationFromQuaternion( q );
|
|
|
|
|
@@ -363,7 +363,7 @@ THREE.Matrix4.prototype = {
|
|
|
|
|
|
if ( n !== undefined ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead.' );
|
|
|
+ THREE.warn( 'THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead.' );
|
|
|
return this.multiplyMatrices( m, n );
|
|
|
|
|
|
}
|
|
@@ -442,21 +442,21 @@ THREE.Matrix4.prototype = {
|
|
|
|
|
|
multiplyVector3: function ( vector ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) or vector.applyProjection( matrix ) instead.' );
|
|
|
+ THREE.warn( 'THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) or vector.applyProjection( matrix ) instead.' );
|
|
|
return vector.applyProjection( this );
|
|
|
|
|
|
},
|
|
|
|
|
|
multiplyVector4: function ( vector ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
|
|
|
+ THREE.warn( 'THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
|
|
|
return vector.applyMatrix4( this );
|
|
|
|
|
|
},
|
|
|
|
|
|
multiplyVector3Array: function ( a ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .multiplyVector3Array() has been renamed. Use matrix.applyToVector3Array( array ) instead.' );
|
|
|
+ THREE.warn( 'THREE.Matrix4: .multiplyVector3Array() has been renamed. Use matrix.applyToVector3Array( array ) instead.' );
|
|
|
return this.applyToVector3Array( a );
|
|
|
|
|
|
},
|
|
@@ -492,7 +492,7 @@ THREE.Matrix4.prototype = {
|
|
|
|
|
|
rotateAxis: function ( v ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.' );
|
|
|
+ THREE.warn( 'THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.' );
|
|
|
|
|
|
v.transformDirection( this );
|
|
|
|
|
@@ -500,7 +500,7 @@ THREE.Matrix4.prototype = {
|
|
|
|
|
|
crossVector: function ( vector ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
|
|
|
+ THREE.warn( 'THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
|
|
|
return vector.applyMatrix4( this );
|
|
|
|
|
|
},
|
|
@@ -606,7 +606,7 @@ THREE.Matrix4.prototype = {
|
|
|
|
|
|
return function () {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead.' );
|
|
|
+ THREE.warn( 'THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead.' );
|
|
|
|
|
|
var te = this.elements;
|
|
|
return v1.set( te[ 12 ], te[ 13 ], te[ 14 ] );
|
|
@@ -659,7 +659,7 @@ THREE.Matrix4.prototype = {
|
|
|
|
|
|
if ( det == 0 ) {
|
|
|
|
|
|
- var msg = "Matrix4.getInverse(): can't invert matrix, determinant is 0";
|
|
|
+ var msg = "THREE.Matrix4.getInverse(): can't invert matrix, determinant is 0";
|
|
|
|
|
|
if ( throwOnInvertible || false ) {
|
|
|
|
|
@@ -667,7 +667,7 @@ THREE.Matrix4.prototype = {
|
|
|
|
|
|
} else {
|
|
|
|
|
|
- console.warn( msg );
|
|
|
+ THREE.warn( msg );
|
|
|
|
|
|
}
|
|
|
|
|
@@ -684,31 +684,31 @@ THREE.Matrix4.prototype = {
|
|
|
|
|
|
translate: function ( v ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .translate() has been removed.' );
|
|
|
+ THREE.error( 'THREE.Matrix4: .translate() has been removed.' );
|
|
|
|
|
|
},
|
|
|
|
|
|
rotateX: function ( angle ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .rotateX() has been removed.' );
|
|
|
+ THREE.error( 'THREE.Matrix4: .rotateX() has been removed.' );
|
|
|
|
|
|
},
|
|
|
|
|
|
rotateY: function ( angle ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .rotateY() has been removed.' );
|
|
|
+ THREE.error( 'THREE.Matrix4: .rotateY() has been removed.' );
|
|
|
|
|
|
},
|
|
|
|
|
|
rotateZ: function ( angle ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .rotateZ() has been removed.' );
|
|
|
+ THREE.error( 'THREE.Matrix4: .rotateZ() has been removed.' );
|
|
|
|
|
|
},
|
|
|
|
|
|
rotateByAxis: function ( axis, angle ) {
|
|
|
|
|
|
- console.warn( 'THREE.Matrix4: .rotateByAxis() has been removed.' );
|
|
|
+ THREE.error( 'THREE.Matrix4: .rotateByAxis() has been removed.' );
|
|
|
|
|
|
},
|
|
|
|