提交 17815ddf 编写于 作者: M Mr.doob

Added deprecated messages to more critical changes.

上级 d730415e
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册