Browse Source

Added deprecated messages to more critical changes.

Mr.doob 12 years ago
parent
commit
17815ddf5d
3 changed files with 28 additions and 0 deletions
  1. 7 0
      src/math/Matrix3.js
  2. 14 0
      src/math/Matrix4.js
  3. 7 0
      src/math/Quaternion.js

+ 7 - 0
src/math/Matrix3.js

@@ -63,6 +63,13 @@ THREE.Matrix3.prototype = {
 
 	},
 
+	multiplyVector3: function ( vector ) {
+
+		console.warn( 'DEPRECATED: Matrix3\'s .multiplyVector3() has been removed. Use is now vector.applyMatrix3( matrix ) instead.' );
+		return vector.applyMatrix3( this );
+
+	},
+
 	multiplyVector3Array: function ( a ) {
 
 		var tmp = THREE.Matrix3.__v1;

+ 14 - 0
src/math/Matrix4.js

@@ -329,6 +329,20 @@ THREE.Matrix4.prototype = {
 
 	},
 
+	multiplyVector3: function ( vector ) {
+
+		console.warn( 'DEPRECATED: Matrix4\'s .multiplyVector3() has been removed. Use is now vector.applyMatrix4( matrix ) instead.' );
+		return vector.applyMatrix4( this );
+
+	},
+
+	multiplyVector4: function ( vector ) {
+
+		console.warn( 'DEPRECATED: Matrix4\'s .multiplyVector4() has been removed. Use is now vector.applyMatrix4( matrix ) instead.' );
+		return vector.applyMatrix4( this );
+
+	},
+
 	multiplyVector3Array: function ( a ) {
 
 		var tmp = THREE.Matrix4.__v1;

+ 7 - 0
src/math/Quaternion.js

@@ -260,6 +260,13 @@ THREE.Quaternion.prototype = {
 
 	},
 
+	multiplyVector3: function ( vector ) {
+
+		console.warn( 'DEPRECATED: Quaternion\'s .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead.' );
+		return vector.applyQuaternion( this );
+
+	},
+
 	slerp: function ( qb, t ) {
 
 		var x = this.x, y = this.y, z = this.z, w = this.w;