BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
A rectangle, for use in detector masks. More...
Public Member Functions | |
Rectangle (double xlow, double ylow, double xup, double yup) | |
Rectangle * | clone () const |
bool | contains (const Bin1D &binx, const Bin1D &biny) const |
bool | contains (double x, double y) const |
double | getArea () const |
double | getXlow () const |
double | getXup () const |
double | getYlow () const |
double | getYup () const |
A rectangle, for use in detector masks.
Edges are along the coordinate axes.
Rectangle::Rectangle | ( | double | xlow, |
double | ylow, | ||
double | xup, | ||
double | yup | ||
) |
xlow | x-coordinate of lower left corner |
ylow | y-coordinate of lower left corner |
xup | x-coordinate of upper right corner |
yup | y-coordinate of upper right corner |