* Returns whether the rectangle contains the given point. * * @param point - The point to check.
(point: Point)
| 118 | * @param point - The point to check. |
| 119 | */ |
| 120 | containsPoint(point: Point): boolean { |
| 121 | return this.x <= point.x && this.y <= point.y && this.maxX >= point.x && this.maxY >= point.y; |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * Returns the first corner of this rectangle (from top to bottom, left to right) |