51 return x == other.x &&
y == other.y &&
width == other.width &&
height == other.height;
63 return x != other.x ||
y != other.y ||
width != other.width ||
height != other.height;
78 os <<
"Rectangle(x: " << rect.
x <<
", y: " << rect.
y <<
", width: " << rect.
width <<
", height: " << rect.
height <<
")";
std::ostream & operator<<(std::ostream &os, const Color &c)
Definition: Color.h:134
Definition: Configuration.h:11
Definition: Rectangle.h:15
float x
Definition: Rectangle.h:16
Rectangle(float x, float y, float width, float height) noexcept
Definition: Rectangle.h:34
float y
Definition: Rectangle.h:17
float height
Definition: Rectangle.h:19
float width
Definition: Rectangle.h:18
bool operator!=(const Rectangle &other) const noexcept
Definition: Rectangle.h:61
bool operator==(const Rectangle &other) const noexcept
Definition: Rectangle.h:49