提交 c11662b2 编写于 作者: M Marshall Quander

Fix inaccurate comments in Matrix4

These weren't really correct, since Matrix4 elements are stored in
column-major order.
上级 fe4b89a1
......@@ -263,12 +263,12 @@ Object.assign( Matrix4.prototype, {
}
// last column
// bottom row
te[ 3 ] = 0;
te[ 7 ] = 0;
te[ 11 ] = 0;
// bottom row
// last column
te[ 12 ] = 0;
te[ 13 ] = 0;
te[ 14 ] = 0;
......@@ -752,12 +752,12 @@ Object.assign( Matrix4.prototype, {
te[ 6 ] = ( yz + wx ) * sy;
te[ 10 ] = ( 1 - ( xx + yy ) ) * sz;
// last column
// bottom row
te[ 3 ] = 0;
te[ 7 ] = 0;
te[ 11 ] = 0;
// bottom row
// last column
te[ 12 ] = position.x;
te[ 13 ] = position.y;
te[ 14 ] = position.z;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册