22 #ifndef UTILLIB_GEOMETRY_QUADRECTANGLE_HPP
23 #define UTILLIB_GEOMETRY_QUADRECTANGLE_HPP
39 explicit Rectangle(
double ymax,
double ymin,
double xmin,
double xmax);
47 explicit Rectangle(
double x,
double y,
double size);
64 bool within(
double n,
double s,
double w,
double e)
const;
82 #endif // UTILLIB_GEOMETRY_QUADRECTANGLE_HPP
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