|
BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Basic class for all shapes in 2D. More...
Inheritance diagram for IShape2D:Public Member Functions | |
| IShape2D (const char *name) | |
| virtual IShape2D * | clone () const =0 |
| virtual bool | contains (double x, double y) const =0 |
| Returns true if point with given coordinates is inside or on border of the shape. | |
| virtual bool | contains (const Bin1D &binx, const Bin1D &biny) const =0 |
| Returns true if area defined by two bins is inside or on border of polygon (more precisely, if mid point of two bins satisfy this condition). | |
Public Member Functions inherited from ICloneable | |
| ICloneable (const ICloneable &)=delete | |
| ICloneable (ICloneable &&)=default | |
| virtual void | transferToCPP () |
| Used for Python overriding of clone (see swig/tweaks.py) | |
Protected Member Functions | |
| virtual void | print (std::ostream &ostr) const |
Friends | |
| std::ostream & | operator<< (std::ostream &ostr, const IShape2D &shape) |
Basic class for all shapes in 2D.
Definition at line 26 of file IShape2D.h.