提交 c62db7e4 编写于 作者: A astrodud 提交者: Mr.doob

removed object lookups in transpose()

上级 7bdf079f
......@@ -8,11 +8,11 @@ THREE.Matrix3.prototype = {
transpose: function () {
var tmp;
var tmp, m = this.m;
tmp = this.m[1]; this.m[1] = this.m[3]; this.m[3] = tmp;
tmp = this.m[2]; this.m[2] = this.m[6]; this.m[6] = tmp;
tmp = this.m[5]; this.m[5] = this.m[7]; this.m[7] = tmp;
tmp = m[1]; m[1] = m[3]; m[3] = tmp;
tmp = m[2]; m[2] = m[6]; m[6] = tmp;
tmp = m[5]; m[5] = m[7]; m[7] = tmp;
return this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册