11 #include "TPolyLine.h"
34 Hull(
const std::vector<std::vector<double>>& points);
41 Hull(
const std::vector<double>& points,
54 void Initialize(
const std::vector<std::vector<double>>& points);
60 void SetPointArray(
const std::vector<double>& points,
const size_t& dim);
Data stucture of a convex hull.
Definition: Hull.hh:25
~Hull()
Destructor.
Definition: Hull.cc:40
void AddPoint(const std::vector< double > &point)
Sets the array of points on the hull.
Definition: Hull.hh:63
Set of functions that compose the Geometry package.
Matrix< double > GetCWPoints() const
Returns the points ordered clockwise with respect to the CMF.
Definition: Hull.cc:66
TPolyLine * Polygon() const
Returns a polygon of the hull to be drawn in ROOT (only 2D)
Definition: Hull.cc:87
double _vol
Volume of the convex hull.
Definition: Hull.hh:88
void Initialize(const std::vector< std::vector< double >> &points)
Find the Hull triangulation of the N points.
Definition: Hull.cc:42
Hull()
Default constructor, initilizes everything to 0.
Definition: Hull.cc:3
const double & GetVolume() const
Returns the volume of the hull.
Definition: Hull.hh:75
std::vector< std::vector< double > > _points
N points on the hull.
Definition: Hull.hh:87
Hull & operator=(const Hull &hull)
Equality operator.
Definition: Hull.cc:29
void SetPointArray(const std::vector< std::vector< double >> &points)
Sets the array of points on the hull.
Definition: Hull.hh:57
const std::vector< std::vector< double > > & GetPointArray() const
Returns the array of points on which the triangulation is constructed.
Definition: Hull.hh:66
const std::vector< double > & GetPoint(const size_t i) const
Returns a specific point.
Definition: Hull.hh:69
size_t _dim
Dimension of the space.
Definition: Hull.hh:86
void SetVolume(const double &vol)
Sets the volume of the hull.
Definition: Hull.hh:72