BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Rectangle Class Reference

A rectangle, for use in detector masks. More...

+ Inheritance diagram for Rectangle:

Public Member Functions

 Rectangle (double xlow, double ylow, double xup, double yup)
 
Rectangleclone () 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
 

Detailed Description

A rectangle, for use in detector masks.

Edges are along the coordinate axes.

Constructor & Destructor Documentation

◆ Rectangle()

Rectangle::Rectangle ( double  xlow,
double  ylow,
double  xup,
double  yup 
)
Parameters
xlowx-coordinate of lower left corner
ylowy-coordinate of lower left corner
xupx-coordinate of upper right corner
yupy-coordinate of upper right corner