clang-format core/utils/rect.js

This commit is contained in:
kozbial
2021-07-14 16:11:11 -07:00
committed by Monica Kozbial
parent 466a0db809
commit de2cff80fd

View File

@@ -62,7 +62,8 @@ Rect.prototype.contains = function(x, y) {
* @return {boolean} Whether this rectangle intersects the provided rectangle.
*/
Rect.prototype.intersects = function(other) {
return !(this.left > other.right || this.right < other.left ||
return !(
this.left > other.right || this.right < other.left ||
this.top > other.bottom || this.bottom < other.top);
};