* Checks if rect2 is fully contained inside rect1 * @param {Object} rect1 * @param {Object} rect2 * @returns {Boolean}
(rect1, rect2)
| 138 | * @returns {Boolean} |
| 139 | */ |
| 140 | static includes(rect1, rect2) { |
| 141 | return rect1.bottom >= rect2.bottom |
| 142 | && rect1.left <= rect2.left |
| 143 | && rect1.right >= rect2.right |
| 144 | && rect1.top <= rect2.top; |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * Checks if rect2 is not contained inside rect1. |
no outgoing calls