Go to the documentation of this file.
79 Line(
const Point &point,
float polar,
float azimuth);
93 virtual ~Line() =
default;
float Mag() const
Compute the vector magnitude.
Definition: Vec3D.h:118
Class describing a Plane in the 3D space.
Definition: Plane.h:29
float Polar() const
Returns the polar angle of the line with respect to the NEGATIVE Z axis.
Definition: Line.h:101
Point _point
Definition: Line.h:193
Vec3D Direction() const
Returns direction of the line.
Definition: Line.h:124
A class describing a vector in 3D space.
Definition: Vec3D.h:33
bool operator==(const Line &rhs) const
Comparison operators.
Definition: Line.h:189
Point Origin() const
Returns the "point of origin" of the line.
Definition: Line.h:118
#define DEFAULT_INIT(x)
Definition: DefaultValues.h:23
Class describing a line in the 3D space.
Definition: Line.h:37
double MinimumDistanceToLine(const Line line) const
Computes the minimum distance between two lines.
Definition: Line.cpp:213
Exception class for invalid operations on a degenerate line.
Definition: Line.h:127
double DistanceToPoint(const Point p) const
Computes the distance of a point to the line.
Definition: Line.cpp:207
float AzimuthAngle() const
Compute the azimuth angle.
Definition: Vec3D.h:166
Vec3D _direction
Definition: Line.h:194
Exception(std::string msg="")
Definition: Exception.h:30
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:22
View
Aliases for the three 2D projection planes.
Definition: RefFrame.h:91
float Azimuth() const
Returns the azimuth angle of the line.
Definition: Line.h:110
float PolarAngle() const
Compute the polar angle.
Definition: Vec3D.h:156
Line & operator=(const Line &other)=default
Default copy assignment.
bool operator!=(const Line &rhs) const
Definition: Line.h:190
Line2D Projection2D(RefFrame::View view) const
Computes the 2D projection of the line on a given view.
Definition: Line.cpp:252
std::optional< 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
Definition: Exception.h:24
Axis
Aliases for the axes.
Definition: RefFrame.h:34
A class describing a point in the 3D space.
Class describing a line in the 2D space.
Definition: Line2D.h:35
Line()
Default Constructor.
Definition: Line.h:42
Line(Point point, Vec3D direction)
Constructor.
Definition: Line.h:67
Line Projection(const Plane &plane) const
Computes the projection of the line on a given plane.
Definition: Line.cpp:223
virtual ~Line()=default
Virtual destructor