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 | |
Ellipse (double xcenter, double ycenter, double xradius, double yradius, double theta=0.0) | |
Ellipse * | 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 ellipse; 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 | getCenterX () const |
double | getCenterY () const |
double | getTheta () const |
double | radiusX () const |
double | radiusY () 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_theta |
double | m_xc |
double | m_xr |
double | m_yc |
double | m_yr |
Ellipse::Ellipse | ( | double | xcenter, |
double | ycenter, | ||
double | xradius, | ||
double | yradius, | ||
double | theta = 0.0 |
||
) |
|
inlineoverridevirtual |
Returns true if area defined by two bins is inside or on border of ellipse; more precisely, if mid point of two bins satisfy this condition.
Implements IShape2D.
Definition at line 47 of file Ellipse.cpp.
References Bin1D::center(), and contains().
|
overridevirtual |
Returns true if point with given coordinates is inside or on border of the shape.
Implements IShape2D.
Definition at line 37 of file Ellipse.cpp.
References m_theta, m_xc, m_xr, m_yc, and m_yr.
Referenced by contains().
|
inline |
|
inline |
|
inline |
|
inlineprotectedvirtualinherited |
|
inline |
|
inline |
|
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 38 of file Ellipse.h.
Referenced by clone(), contains(), and getTheta().
|
private |
Definition at line 38 of file Ellipse.h.
Referenced by clone(), contains(), and getCenterX().
|
private |
Definition at line 38 of file Ellipse.h.
Referenced by clone(), contains(), and radiusX().
|
private |
Definition at line 38 of file Ellipse.h.
Referenced by clone(), contains(), and getCenterY().
|
private |
Definition at line 38 of file Ellipse.h.
Referenced by clone(), contains(), and radiusY().