43 #ifndef __MOMENTGRAVITYCENTER_H__ 44 #define __MOMENTGRAVITYCENTER_H__ 46 #include <visp3/core/vpMoment.h> 47 #include <visp3/core/vpMomentDatabase.h> 122 const std::vector<double> &
get()
const;
127 double getXg()
const {
return values[0]; }
132 double getYg()
const {
return values[1]; }
136 const char *
name()
const {
return "vpMomentGravityCenter"; }
virtual ~vpMomentGravityCenter()
Class for generic objects.
const char * name() const
This class defines shared methods/attributes for 2D moments.
Class describing 2D gravity center moment.
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpMoment &m)
virtual void printDependencies(std::ostream &os) const