|
@@ -103,14 +103,7 @@ class Vector3 {
|
|
|
|
|
|
}
|
|
|
|
|
|
- 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.y += v.y;
|
|
@@ -150,14 +143,7 @@ class Vector3 {
|
|
|
|
|
|
}
|
|
|
|
|
|
- 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.y -= v.y;
|
|
@@ -187,14 +173,7 @@ class Vector3 {
|
|
|
|
|
|
}
|
|
|
|
|
|
- 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.y *= v.y;
|
|
@@ -226,12 +205,6 @@ class Vector3 {
|
|
|
|
|
|
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.setFromEuler( euler ) );
|
|
|
|
|
|
}
|
|
@@ -500,14 +473,7 @@ class Vector3 {
|
|
|
|
|
|
}
|
|
|
|
|
|
- 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 );
|
|
|
|
|
@@ -697,13 +663,7 @@ class Vector3 {
|
|
|
|
|
|
}
|
|
|
|
|
|
- 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.y = attribute.getY( index );
|