BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
An infinite vertical line. More...
Public Member Functions | |
VerticalLine (double x) | |
VerticalLine * | clone () const |
bool | contains (const Bin1D &binx, const Bin1D &biny) const |
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 |
Returns true if point with given coordinates is inside or on border of the shape. More... | |
double | getXpos () 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_x |
VerticalLine::VerticalLine | ( | double | x | ) |
|
inlinevirtual |
Implements IShape2D.
Definition at line 41 of file Line.h.
References VerticalLine(), and m_x.
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 75 of file Line.cpp.
References Bin1D::m_lower, Bin1D::m_upper, and m_x.
|
virtual |
Returns true if point with given coordinates is inside or on border of the shape.
Implements IShape2D.
Definition at line 70 of file Line.cpp.
References algo::almostEqual(), and m_x.
|
inline |
|
inlineprotectedvirtualinherited |
|
inlinevirtualinherited |
Used for Python overriding of clone (see swig/tweaks.py)
Definition at line 34 of file ICloneable.h.
|
privateinherited |
Definition at line 49 of file IShape2D.h.
Referenced by IShape2D::print().
|
private |
Definition at line 49 of file Line.h.
Referenced by clone(), contains(), and getXpos().