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

Matrix4: Added equals().

上级 2bf0d0b6
......@@ -991,6 +991,21 @@ THREE.Matrix4.prototype = {
},
equals: function ( matrix ) {
var te = this.elements;
var me = matrix.elements;
for ( var i = 0; i < 16; i ++ ) {
if ( te[ i ] !== me[ i ] ) return false;
}
return true;
},
fromArray: function ( array ) {
this.elements.set( array );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册