提交 153e0368 编写于 作者: M Mr.doob

Deprecated matrix.rotateAxis as per #3141.

上级 77e7d323
......@@ -373,16 +373,9 @@ THREE.extend( THREE.Matrix4.prototype, {
rotateAxis: function ( v ) {
var te = this.elements;
var vx = v.x, vy = v.y, vz = v.z;
v.x = vx * te[0] + vy * te[4] + vz * te[8];
v.y = vx * te[1] + vy * te[5] + vz * te[9];
v.z = vx * te[2] + vy * te[6] + vz * te[10];
v.normalize();
console.warn( 'DEPRECATED: Matrix4\'s .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.' );
return v;
v.transformDirection( this );
},
......@@ -590,10 +583,10 @@ THREE.extend( THREE.Matrix4.prototype, {
},
compose: function() {
var mRotation = new THREE.Matrix4(),
mScale = new THREE.Matrix4();
var mRotation = new THREE.Matrix4();
var mScale = new THREE.Matrix4();
return function ( position, quaternion, scale ) {
var te = this.elements;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册