15 #ifndef BORNAGAIN_CORE_MASK_ELLIPSE_H
16 #define BORNAGAIN_CORE_MASK_ELLIPSE_H
26 Ellipse(
double xcenter,
double ycenter,
double xradius,
double yradius,
double theta = 0.0);
27 Ellipse* clone()
const {
return new Ellipse(m_xc, m_yc, m_xr, m_yr, m_theta); }
29 bool contains(
double x,
double y)
const;
32 double getCenterX()
const {
return m_xc; }
33 double getCenterY()
const {
return m_yc; }
34 double getRadiusX()
const {
return m_xr; }
35 double getRadiusY()
const {
return m_yr; }
36 double getTheta()
const {
return m_theta; }
39 double m_xc, m_yc, m_xr, m_yr, m_theta;
Defines basic class for all 2D shapes.
bool contains(double x, double y) const
Returns true if point with given coordinates is inside or on border of the shape.
Ellipse(double xcenter, double ycenter, double xradius, double yradius, double theta=0.0)
Basic class for all shapes in 2D.