15 #ifndef BORNAGAIN_CORE_MASK_LINE_H
16 #define BORNAGAIN_CORE_MASK_LINE_H
26 Line(
double x1,
double y1,
double x2,
double y2);
27 Line* clone()
const {
return new Line(m_x1, m_y1, m_x2, m_y2); }
29 bool contains(
double x,
double y)
const;
33 double m_x1, m_y1, m_x2, m_y2;
45 bool contains(
double x,
double y)
const;
48 double getXpos()
const {
return m_x; }
63 bool contains(
double x,
double y)
const;
66 double getYpos()
const {
return m_y; }
Defines basic class for all 2D shapes.
An infinite horizontal line.
bool contains(double x, double y) const
Returns true if point with given coordinates is inside or on border of the shape.
Basic class for all shapes in 2D.
bool contains(double x, double y) const
Returns true if point with given coordinates is inside or on border of the shape.
An infinite vertical line.
bool contains(double x, double y) const
Returns true if point with given coordinates is inside or on border of the shape.