|
@@ -569,12 +569,7 @@ class Vector2 {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- add(v, w) {
|
|
|
|
- if (w !== undefined) {
|
|
|
|
- console.warn('THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead.');
|
|
|
|
- return this.addVectors(v, w);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ add(v) {
|
|
this.x += v.x;
|
|
this.x += v.x;
|
|
this.y += v.y;
|
|
this.y += v.y;
|
|
return this;
|
|
return this;
|
|
@@ -598,12 +593,7 @@ class Vector2 {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- sub(v, w) {
|
|
|
|
- if (w !== undefined) {
|
|
|
|
- console.warn('THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.');
|
|
|
|
- return this.subVectors(v, w);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ sub(v) {
|
|
this.x -= v.x;
|
|
this.x -= v.x;
|
|
this.y -= v.y;
|
|
this.y -= v.y;
|
|
return this;
|
|
return this;
|
|
@@ -788,11 +778,7 @@ class Vector2 {
|
|
return array;
|
|
return array;
|
|
}
|
|
}
|
|
|
|
|
|
- fromBufferAttribute(attribute, index, offset) {
|
|
|
|
- if (offset !== undefined) {
|
|
|
|
- console.warn('THREE.Vector2: offset has been removed from .fromBufferAttribute().');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ fromBufferAttribute(attribute, index) {
|
|
this.x = attribute.getX(index);
|
|
this.x = attribute.getX(index);
|
|
this.y = attribute.getY(index);
|
|
this.y = attribute.getY(index);
|
|
return this;
|
|
return this;
|
|
@@ -825,10 +811,6 @@ class Matrix3 {
|
|
constructor() {
|
|
constructor() {
|
|
Matrix3.prototype.isMatrix3 = true;
|
|
Matrix3.prototype.isMatrix3 = true;
|
|
this.elements = [1, 0, 0, 0, 1, 0, 0, 0, 1];
|
|
this.elements = [1, 0, 0, 0, 1, 0, 0, 0, 1];
|
|
-
|
|
|
|
- if (arguments.length > 0) {
|
|
|
|
- console.error('THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.');
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
set(n11, n12, n13, n21, n22, n23, n31, n32, n33) {
|
|
set(n11, n12, n13, n21, n22, n23, n31, n32, n33) {
|
|
@@ -2231,12 +2213,7 @@ class Vector4 {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- add(v, w) {
|
|
|
|
- if (w !== undefined) {
|
|
|
|
- console.warn('THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead.');
|
|
|
|
- return this.addVectors(v, w);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ add(v) {
|
|
this.x += v.x;
|
|
this.x += v.x;
|
|
this.y += v.y;
|
|
this.y += v.y;
|
|
this.z += v.z;
|
|
this.z += v.z;
|
|
@@ -2268,12 +2245,7 @@ class Vector4 {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- sub(v, w) {
|
|
|
|
- if (w !== undefined) {
|
|
|
|
- console.warn('THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.');
|
|
|
|
- return this.subVectors(v, w);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ sub(v) {
|
|
this.x -= v.x;
|
|
this.x -= v.x;
|
|
this.y -= v.y;
|
|
this.y -= v.y;
|
|
this.z -= v.z;
|
|
this.z -= v.z;
|
|
@@ -2578,11 +2550,7 @@ class Vector4 {
|
|
return array;
|
|
return array;
|
|
}
|
|
}
|
|
|
|
|
|
- fromBufferAttribute(attribute, index, offset) {
|
|
|
|
- if (offset !== undefined) {
|
|
|
|
- console.warn('THREE.Vector4: offset has been removed from .fromBufferAttribute().');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ fromBufferAttribute(attribute, index) {
|
|
this.x = attribute.getX(index);
|
|
this.x = attribute.getX(index);
|
|
this.y = attribute.getY(index);
|
|
this.y = attribute.getY(index);
|
|
this.z = attribute.getZ(index);
|
|
this.z = attribute.getZ(index);
|
|
@@ -3187,12 +3155,7 @@ class Quaternion {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- multiply(q, p) {
|
|
|
|
- if (p !== undefined) {
|
|
|
|
- console.warn('THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead.');
|
|
|
|
- return this.multiplyQuaternions(q, p);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ multiply(q) {
|
|
return this.multiplyQuaternions(this, q);
|
|
return this.multiplyQuaternions(this, q);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3427,12 +3390,7 @@ class Vector3 {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- add(v, w) {
|
|
|
|
- if (w !== undefined) {
|
|
|
|
- console.warn('THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead.');
|
|
|
|
- return this.addVectors(v, w);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ add(v) {
|
|
this.x += v.x;
|
|
this.x += v.x;
|
|
this.y += v.y;
|
|
this.y += v.y;
|
|
this.z += v.z;
|
|
this.z += v.z;
|
|
@@ -3460,12 +3418,7 @@ class Vector3 {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- sub(v, w) {
|
|
|
|
- if (w !== undefined) {
|
|
|
|
- console.warn('THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.');
|
|
|
|
- return this.subVectors(v, w);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ sub(v) {
|
|
this.x -= v.x;
|
|
this.x -= v.x;
|
|
this.y -= v.y;
|
|
this.y -= v.y;
|
|
this.z -= v.z;
|
|
this.z -= v.z;
|
|
@@ -3486,12 +3439,7 @@ class Vector3 {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- multiply(v, w) {
|
|
|
|
- if (w !== undefined) {
|
|
|
|
- console.warn('THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead.');
|
|
|
|
- return this.multiplyVectors(v, w);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ multiply(v) {
|
|
this.x *= v.x;
|
|
this.x *= v.x;
|
|
this.y *= v.y;
|
|
this.y *= v.y;
|
|
this.z *= v.z;
|
|
this.z *= v.z;
|
|
@@ -3513,10 +3461,6 @@ class Vector3 {
|
|
}
|
|
}
|
|
|
|
|
|
applyEuler(euler) {
|
|
applyEuler(euler) {
|
|
- if (!(euler && euler.isEuler)) {
|
|
|
|
- console.error('THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
return this.applyQuaternion(_quaternion$4.setFromEuler(euler));
|
|
return this.applyQuaternion(_quaternion$4.setFromEuler(euler));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3711,12 +3655,7 @@ class Vector3 {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- cross(v, w) {
|
|
|
|
- if (w !== undefined) {
|
|
|
|
- console.warn('THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead.');
|
|
|
|
- return this.crossVectors(v, w);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ cross(v) {
|
|
return this.crossVectors(this, v);
|
|
return this.crossVectors(this, v);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3849,11 +3788,7 @@ class Vector3 {
|
|
return array;
|
|
return array;
|
|
}
|
|
}
|
|
|
|
|
|
- fromBufferAttribute(attribute, index, offset) {
|
|
|
|
- if (offset !== undefined) {
|
|
|
|
- console.warn('THREE.Vector3: offset has been removed from .fromBufferAttribute().');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ fromBufferAttribute(attribute, index) {
|
|
this.x = attribute.getX(index);
|
|
this.x = attribute.getX(index);
|
|
this.y = attribute.getY(index);
|
|
this.y = attribute.getY(index);
|
|
this.z = attribute.getZ(index);
|
|
this.z = attribute.getZ(index);
|
|
@@ -4807,10 +4742,6 @@ class Matrix4 {
|
|
constructor() {
|
|
constructor() {
|
|
Matrix4.prototype.isMatrix4 = true;
|
|
Matrix4.prototype.isMatrix4 = true;
|
|
this.elements = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
this.elements = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
-
|
|
|
|
- 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) {
|
|
@@ -4923,10 +4854,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,
|
|
const x = euler.x,
|
|
y = euler.y,
|
|
y = euler.y,
|
|
@@ -5083,12 +5010,7 @@ class Matrix4 {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- 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);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -5436,10 +5358,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);
|