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

Rectangle: Added equals()

上级 752a91a3
......@@ -32,6 +32,12 @@ THREE.Rectangle.prototype = {
return this;
},
equals: function ( rectangle ) {
return this.x === rectangle.x && this.y === rectangle.y && this.width === rectangle.width && this.height === rectangle.height;
}
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册