76 Line(
const Point &point,
float polar,
float azimuth);
90 virtual ~Line() =
default;
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:24
Exception(std::string msg="")
Definition: Exception.h:30
#define DEFAULT_INIT(x)
Definition: DefaultValues.h:23
Line2D Projection2D(RefFrame::View view) const
Computes the 2D projection of the line on a given view.
Definition: Line.cpp:252
Vec3D _direction
Definition: Line.h:193
float Polar() const
Returns the polar angle of the line with respect to the NEGATIVE Z axis.
Definition: Line.h:98
Vec3D Direction() const
Returns direction of the line.
Definition: Line.h:121
Axis
Aliases for the axes. RefFrame.h common/RefFrame.h.
Definition: RefFrame.h:36
Class describing a line in the 2D space.
Definition: Line2D.h:32
double MinimumDistanceToLine(const Line line) const
Computes the minimum distance between two lines.
Definition: Line.cpp:213
Point Origin() const
Returns the "point of origin" of the line.
Definition: Line.h:115
float PolarAngle() const
Compute the polar angle.
Definition: Vec3D.h:147
A class describing a vector in 3D space.
Definition: Vec3D.h:33
Class describing a line in the 3D space.
Definition: Line.h:34
virtual ~Line()=default
Virtual destructor.
Line Projection(const Plane &plane) const
Computes the projection of the line on a given plane.
Definition: Line.cpp:223
bool operator==(const Line &rhs) const
Comparison operators.
Definition: Line.h:188
float AzimuthAngle() const
Compute the azimuth angle.
Definition: Vec3D.h:157
Point _point
Definition: Line.h:192
double DistanceToPoint(const Point p) const
Computes the distance of a point to the line.
Definition: Line.cpp:207
Line()
Default Constructor.
Definition: Line.h:39
Point Intersection(RefFrame::Axis axis, float coo) const
Returns the line coordinate at given plane, defined by its normal axis and the coordinate along that ...
Definition: Line.cpp:173
float Mag() const
Compute the vector magnitude.
Definition: Vec3D.h:118
Line(Point point, Vec3D direction)
Constructor.
Definition: Line.h:64
Definition: Exception.h:24
Exception class for invalid operations on a degenerate line.
Definition: Line.h:124
float Azimuth() const
Returns the azimuth angle of the line.
Definition: Line.h:107
View
Aliases for the three 2D projection planes. RefFrame.h common/RefFrame.h.
Definition: RefFrame.h:93
Class describing a Plane in the 3D space.
Definition: Plane.h:28
Line & operator=(const Line &other)=default
Default copy assignment.
bool operator!=(const Line &rhs) const
Definition: Line.h:189