15 #ifndef BORNAGAIN_DEVICE_MASK_LINE_H
16 #define BORNAGAIN_DEVICE_MASK_LINE_H
25 Line(
double x1,
double y1,
double x2,
double y2);
28 bool contains(
double x,
double y)
const override;
43 bool contains(
double x,
double y)
const override;
60 bool contains(
double x,
double y)
const override;
Defines basic class for all 2D shapes.
An infinite horizontal line.
HorizontalLine * clone() const override
bool contains(double x, double y) const override
Returns true if point with given coordinates is inside or on border of the shape.
Basic class for all shapes in 2D.
A line segment, for use in detector masks.
bool contains(double x, double y) const override
Returns true if point with given coordinates is inside or on border of the shape.
Line(double x1, double y1, double x2, double y2)
Line * clone() const override
An infinite vertical line.
bool contains(double x, double y) const override
Returns true if point with given coordinates is inside or on border of the shape.
VerticalLine * clone() const override