| 36 | T getWidth() const { return (this->p1.x - this->p0.x); } |
| 37 | |
| 38 | T getHeight() const { return (this->p1.y - this->p0.y); } |
| 39 | |
| 40 | bool operator==(const Rect<T> &other) const { return p0 == other.p0 && p1 == other.p1; } |
| 41 | bool operator!=(const Rect<T> &other) const { return !(*this == other); } |