|
SFCGAL
2.3.0
|
Holds weighted data used to compute a centroid for a Geometry. More...
#include <centroid.h>
Public Member Functions | |
| WeightedCentroid (SFCGAL::Kernel::FT a=0.0, CGAL::Vector_3< SFCGAL::Kernel > c=CGAL::Vector_3< SFCGAL::Kernel >(), SFCGAL::Kernel::FT mTmp=0.0) | |
| Constructs a WeightedCentroid object. More... | |
Public Attributes | |
| SFCGAL::Kernel::FT | area |
| total area or length More... | |
| CGAL::Vector_3< SFCGAL::Kernel > | centroid |
| 3D centroid More... | |
| SFCGAL::Kernel::FT | m |
| weighted average of m More... | |
Holds weighted data used to compute a centroid for a Geometry.
Contains accumulated weight (area or length), centroid vector, and weighted average of measured values for centroid computation.
|
inline |
Constructs a WeightedCentroid object.
Initializes a weighted centroid with the given area, centroid vector, and mass.
| a | Initial area (default = 0.0). |
| c | Initial centroid vector (default = zero vector). |
| mTmp | Initial mass or weight (default = 0.0). |
| SFCGAL::Kernel::FT SFCGAL::algorithm::WeightedCentroid::area |
total area or length
| CGAL::Vector_3<SFCGAL::Kernel> SFCGAL::algorithm::WeightedCentroid::centroid |
3D centroid
| SFCGAL::Kernel::FT SFCGAL::algorithm::WeightedCentroid::m |
weighted average of m
1.8.10