22 #include <UtilLib/include/geometry/Rectangle.hpp>
38 double size) : north(y + size / 2),
54 if (n < south || n >
north)
58 if (e < west || e >
east)
const double north
the north border
const double south
the north border
const double west
the north border
Rectangle(double ymax, double ymin, double xmin, double xmax)
Rectangle Constructs a rectangle.
bool within(const Rectangle &rect) const
within Is rect contained inside this rect
bool pointWithinBounds(double x, double y) const
pointWithinBounds Checks if point is contained inside this rectangle
const double east
the north border
a class representing a rectangle