BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Public Member Functions | |
HorizontalLine (double y) | |
HorizontalLine * | clone () const override |
bool | contains (const Bin1D &binx, const Bin1D &biny) const override |
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). More... | |
bool | contains (double x, double y) const override |
Returns true if point with given coordinates is inside or on border of the shape. More... | |
double | getYpos () const |
virtual void | transferToCPP () |
Used for Python overriding of clone (see swig/tweaks.py) More... | |
Protected Member Functions | |
virtual void | print (std::ostream &ostr) const |
Private Attributes | |
const char *const | m_name |
double | m_y |
HorizontalLine::HorizontalLine | ( | double | y | ) |
|
inlineoverridevirtual |
Implements IShape2D.
Definition at line 58 of file Line.h.
References HorizontalLine(), and m_y.
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).
Implements IShape2D.
Definition at line 98 of file Line.cpp.
References Bin1D::m_lower, Bin1D::m_upper, and m_y.
|
overridevirtual |
Returns true if point with given coordinates is inside or on border of the shape.
Implements IShape2D.
Definition at line 93 of file Line.cpp.
References BaseUtils::algo::almostEqual(), and m_y.
|
inline |
|
inlineprotectedvirtualinherited |
|
inlinevirtualinherited |
Used for Python overriding of clone (see swig/tweaks.py)
Definition at line 32 of file ICloneable.h.
|
privateinherited |
Definition at line 52 of file IShape2D.h.
Referenced by IShape2D::print().
|
private |
Definition at line 66 of file Line.h.
Referenced by clone(), contains(), and getYpos().