BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
Line (double x1, double y1, double x2, double y2) | |
Line * | clone () const |
bool | contains (double x, double y) const |
bool | contains (const Bin1D &binx, const Bin1D &biny) const |
virtual void | transferToCPP () |
Protected Member Functions | |
virtual void | print (std::ostream &ostr) const |
Private Attributes | |
double | m_x1 |
double | m_y1 |
double | m_x2 |
double | m_y2 |
const char *const | m_name |
Line::Line | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2 | ||
) |
|
inlinevirtual |
|
virtual |
Returns true if point with given coordinates is inside or on border of the shape.
Implements IShape2D.
Definition at line 34 of file Line.cpp.
References m_x1, m_x2, m_y1, m_y2, and anonymous_namespace{InterferenceFunctionHardDisk.cpp}::p.
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 48 of file Line.cpp.
References Bin1D::m_lower, Bin1D::m_upper, m_x1, m_x2, m_y1, and m_y2.
|
inlineprotectedvirtualinherited |
|
inlinevirtualinherited |
Used for Python overriding of clone (see swig/tweaks.py)
Definition at line 34 of file ICloneable.h.
|
private |
Definition at line 33 of file Line.h.
Referenced by clone(), and contains().
|
private |
Definition at line 33 of file Line.h.
Referenced by clone(), and contains().
|
private |
Definition at line 33 of file Line.h.
Referenced by clone(), and contains().
|
private |
Definition at line 33 of file Line.h.
Referenced by clone(), and contains().
|
privateinherited |
Definition at line 49 of file IShape2D.h.
Referenced by IShape2D::print().