BICO 1.1

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Pages
pointcentroid.cpp
Go to the documentation of this file.
1 #include "../point/pointcentroid.h"
2 #include "../point/point.h"
3
4 #include <vector>
5
6 using namespace CluE;
7
8 PointCentroid* PointCentroid::clone() const
9 {
10 return new PointCentroid(*this);
11 }
12
13 Point PointCentroid::generate(std::vector<Point*> const& source) const
14 {
15 return Point(source);
16 }
CluE::PointCentroid::clone
virtual PointCentroid * clone() const
Definition: pointcentroid.cpp:8
CluE::PointCentroid
Center of gravity for Point.
Definition: pointcentroid.h:20
CluE::PointCentroid::generate
virtual Point generate(std::vector< Point * > const &) const
Definition: pointcentroid.cpp:13
CluE::Point
Weighted point of arbitrary dimension.
Definition: point.h:17