Go to the documentation of this file.
10 #ifndef HERD_TRIANGLE_H_
11 #define HERD_TRIANGLE_H_
40 Triangle(std::array<Point, 3> points);
56 [[nodiscard]] std::array<Point, 3>
Vertices()
const;
95 #endif // HERD_TRIANGLE_H_
Class describing a Plane in the 3D space.
Definition: Plane.h:29
bool Contains(Point point) const
Checks if the Triangle contains the given point.
Definition: Triangle.cpp:29
A class describing a vector in 3D space.
Definition: Vec3D.h:33
Class describing a line in the 3D space.
Definition: Line.h:37
std::optional< Point > Intersection(const Line &line) const
Computes the intersection point of the given line with the Triangle.
Definition: Triangle.cpp:53
std::array< Point, 3 > Vertices() const
Gets the vertices of the Triangle.
Definition: Triangle.cpp:24
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:22
bool operator==(const Triangle &rhs) const
Comparison operator.
Definition: Triangle.h:81
std::array< Vec3D, 2 > m_vertices
Definition: Triangle.h:87
bool operator!=(const Triangle &rhs) const
Definition: Triangle.h:83
Herd::Plane Plane() const
Gets the plane on which the Triangle lies.
Definition: Triangle.h:48
virtual ~Triangle()=default
Destructor.
Definition: Triangle.h:22
Herd::Plane m_plane
Definition: Triangle.h:86