|
@@ -657,9 +657,15 @@ Object.assign( Vector2.prototype, {
|
|
|
|
|
|
fromAttribute: function ( attribute, index, offset ) {
|
|
fromAttribute: function ( attribute, index, offset ) {
|
|
|
|
|
|
- console.error( 'THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute().' );
|
|
|
|
|
|
+ console.warn( 'THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute().' );
|
|
return this.fromBufferAttribute( attribute, index, offset );
|
|
return this.fromBufferAttribute( attribute, index, offset );
|
|
|
|
|
|
|
|
+ },
|
|
|
|
+ distanceToManhattan: function ( v ) {
|
|
|
|
+
|
|
|
|
+ console.warn( 'THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo().' );
|
|
|
|
+ return this.manhattanDistanceTo( v );
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
} );
|
|
} );
|
|
@@ -702,9 +708,15 @@ Object.assign( Vector3.prototype, {
|
|
},
|
|
},
|
|
fromAttribute: function ( attribute, index, offset ) {
|
|
fromAttribute: function ( attribute, index, offset ) {
|
|
|
|
|
|
- console.error( 'THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute().' );
|
|
|
|
|
|
+ console.warn( 'THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute().' );
|
|
return this.fromBufferAttribute( attribute, index, offset );
|
|
return this.fromBufferAttribute( attribute, index, offset );
|
|
|
|
|
|
|
|
+ },
|
|
|
|
+ distanceToManhattan: function ( v ) {
|
|
|
|
+
|
|
|
|
+ console.warn( 'THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo().' );
|
|
|
|
+ return this.manhattanDistanceTo( v );
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
} );
|
|
} );
|
|
@@ -713,7 +725,7 @@ Object.assign( Vector4.prototype, {
|
|
|
|
|
|
fromAttribute: function ( attribute, index, offset ) {
|
|
fromAttribute: function ( attribute, index, offset ) {
|
|
|
|
|
|
- console.error( 'THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute().' );
|
|
|
|
|
|
+ console.warn( 'THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute().' );
|
|
return this.fromBufferAttribute( attribute, index, offset );
|
|
return this.fromBufferAttribute( attribute, index, offset );
|
|
|
|
|
|
}
|
|
}
|