20 #ifndef MIR_GEOMETRY_RECTANGLE_H_ 21 #define MIR_GEOMETRY_RECTANGLE_H_ 84 std::ostream&
operator<<(std::ostream& out, Rectangle
const& value);
Definition: splash_session.h:24
X x
Definition: point.h:39
constexpr Rectangle()=default
Point top_left
Definition: rectangle.h:42
Size size
Definition: rectangle.h:43
Y top() const
Definition: rectangle.h:70
Y y
Definition: point.h:40
Rectangle intersection_with(Rectangle const &r) const
Point bottom_left() const
Y bottom() const
Definition: rectangle.h:71
X left() const
Definition: rectangle.h:68
constexpr Rectangle(Point const &top_left, Size const &size)
Definition: rectangle.h:37
Point bottom_right() const
The bottom right boundary point of the rectangle.
Definition: rectangle.h:33
bool contains(Point const &p) const
std::ostream & operator<<(std::ostream &out, Displacement const &value)
X right() const
Definition: rectangle.h:69
constexpr bool operator==(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:51
bool overlaps(Rectangle const &r) const
constexpr bool operator!=(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:56