Go to the documentation of this file.
10 #ifndef HERD_LINE2D_H_
11 #define HERD_LINE2D_H_
92 [[nodiscard]]
float Polar()
const;
Point _point
Definition: Line2D.h:135
A class describing a vector in 3D space.
Definition: Vec3D.h:33
#define DEFAULT_INIT(x)
Definition: DefaultValues.h:23
bool IsDegenerate() const
Checks if the line is degenerate.
Definition: Line2D.h:119
float Polar() const
Returns the angle of the line with respect to the positive abscissa.
Definition: Line2D.cpp:29
Exception(std::string msg="")
Definition: Exception.h:30
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:22
Point Origin() const
Returns a point on the line.
Definition: Line2D.h:100
Definition: Exception.h:24
Line2D()
Default constructor.
Definition: Line2D.h:42
Axis
Aliases for the axes.
Definition: RefFrame.h:34
Line2D & operator=(const Line2D &other)=default
Default copy assignment.
virtual ~Line2D()=default
Virtual destructor
Exception class for invalid operations on a degenerate line.
Definition: Line2D.h:122
Class describing a line in the 2D space.
Definition: Line2D.h:35
bool operator==(const Line2D &rhs) const
Comparison operator.
Definition: Line2D.h:132
std::optional< Point > Intersection(float coo, RefFrame::Axis axis) const
Returns the line intersection with a given line parallel to one of the main axes, passing for a given...
Definition: Line2D.cpp:36
float _polar
Definition: Line2D.h:136