15 #ifndef BORNAGAIN_CORE_MASK_LINE_H
16 #define BORNAGAIN_CORE_MASK_LINE_H
26 Line(
double x1,
double y1,
double x2,
double y2);
29 bool contains(
double x,
double y)
const;
45 bool contains(
double x,
double y)
const;
63 bool contains(
double x,
double y)
const;
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.
HorizontalLine * clone() const
Basic class for all shapes in 2D.
Line(double x1, double y1, double x2, double y2)
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.
VerticalLine * clone() const
bool contains(double x, double y) const
Returns true if point with given coordinates is inside or on border of the shape.