|
@@ -15,12 +15,6 @@ class Matrix4 {
|
|
|
|
|
|
];
|
|
];
|
|
|
|
|
|
- if ( arguments.length > 0 ) {
|
|
|
|
-
|
|
|
|
- console.error( 'THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.' );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
set( n11, n12, n13, n14, n21, n22, n23, n24, n31, n32, n33, n34, n41, n42, n43, n44 ) {
|
|
set( n11, n12, n13, n14, n21, n22, n23, n24, n31, n32, n33, n34, n41, n42, n43, n44 ) {
|
|
@@ -160,12 +154,6 @@ class Matrix4 {
|
|
|
|
|
|
makeRotationFromEuler( euler ) {
|
|
makeRotationFromEuler( euler ) {
|
|
|
|
|
|
- if ( ! ( euler && euler.isEuler ) ) {
|
|
|
|
-
|
|
|
|
- console.error( 'THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
const te = this.elements;
|
|
const te = this.elements;
|
|
|
|
|
|
const x = euler.x, y = euler.y, z = euler.z;
|
|
const x = euler.x, y = euler.y, z = euler.z;
|
|
@@ -339,14 +327,7 @@ class Matrix4 {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- multiply( m, n ) {
|
|
|
|
-
|
|
|
|
- if ( n !== undefined ) {
|
|
|
|
-
|
|
|
|
- console.warn( 'THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead.' );
|
|
|
|
- return this.multiplyMatrices( m, n );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+ multiply( m ) {
|
|
|
|
|
|
return this.multiplyMatrices( this, m );
|
|
return this.multiplyMatrices( this, m );
|
|
|
|
|
|
@@ -773,12 +754,6 @@ class Matrix4 {
|
|
|
|
|
|
makePerspective( left, right, top, bottom, near, far ) {
|
|
makePerspective( left, right, top, bottom, near, far ) {
|
|
|
|
|
|
- if ( far === undefined ) {
|
|
|
|
-
|
|
|
|
- console.warn( 'THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.' );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
const te = this.elements;
|
|
const te = this.elements;
|
|
const x = 2 * near / ( right - left );
|
|
const x = 2 * near / ( right - left );
|
|
const y = 2 * near / ( top - bottom );
|
|
const y = 2 * near / ( top - bottom );
|