15 #ifndef BORNAGAIN_DEVICE_MASK_RECTANGLE_H
16 #define BORNAGAIN_DEVICE_MASK_RECTANGLE_H
27 Rectangle(
double xlow,
double ylow,
double xup,
double yup,
bool inverted =
false);
35 bool contains(
double x,
double y)
const override;
Defines basic class for all 2D shapes.
Basic class for all shapes in 2D.
A rectangle, for use in detector masks.
void setInverted(bool inverted=true)
Rectangle(double xlow, double ylow, double xup, double yup, bool inverted=false)
bool contains(double x, double y) const override
Returns true if point with given coordinates is inside or on border of the shape.
Rectangle * clone() const override