Coverage Control Library
|
Struct for Voronoi cell. More...
#include <voronoi.h>
Public Member Functions | |
Point2 | centroid () const |
double | mass () const |
double | sum_idf_site_dist () const |
double | sum_idf_site_dist_sqr () const |
double | sum_idf_goal_dist () const |
double | sum_idf_goal_dist_sqr () const |
std::vector< double > | GetFeatureVector () const |
void | SetZero () |
void | MassCentroidFunctional (double const &map_val, Point2 pt) |
void | GoalObjFunctional (double const &map_val, Point2 pt) |
void | ComputeFinalCentroid () |
Public Attributes | |
Point2 | site |
PointVector | cell |
Point2 | origin_shift = Point2(0, 0) |
Struct for Voronoi cell.
This struct contains the site of the Voronoi cell and the points that make up the cell. Functions are provided to compute the mass and centroid of the cell.
void ComputeFinalCentroid | ( | ) |
Definition at line 41 of file voronoi.cpp.
|
inline |
|
inline |
PointVector cell |