SFCGAL  2.2.0
Public Member Functions | Public Attributes | List of all members
SFCGAL::algorithm::WeightedCentroid Class Reference

Holds weighted data to compute the 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)
 Default constructor. More...
 

Public Attributes

SFCGAL::Kernel::FT area
 total area or length More...
 
CGAL::Vector_3< SFCGAL::Kernelcentroid
 3D centroid More...
 
SFCGAL::Kernel::FT m
 weighted average of m More...
 

Detailed Description

Holds weighted data to compute the centroid for a Geometry.

Constructor & Destructor Documentation

SFCGAL::algorithm::WeightedCentroid::WeightedCentroid ( SFCGAL::Kernel::FT  a = 0.0,
CGAL::Vector_3< SFCGAL::Kernel c = CGAL::Vector_3<SFCGAL::Kernel>(),
SFCGAL::Kernel::FT  mTmp = 0.0 
)
inline

Default constructor.

Member Data Documentation

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