CluE  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
realspaceprovider.cpp
Go to the documentation of this file.
1 #include "realspaceprovider.h"
2 
3 #include "../exception/invalidargumentexception.h"
4 
5 namespace CluE
6 {
7 
8 RealSpaceProvider::RealSpaceProvider(unsigned int dimension) :
9  dimension(dimension)
10 {
11 }
12 
14 {
15  return new RealSpaceProvider(*this);
16 }
17 
19 {
20  std::vector<double> coords(dimension, 0);
21  return Point(coords, 1);
22 }
23 
24 }
25 
virtual V nullVector() const
virtual RealSpaceProvider * clone() const
Provides euclidean vector space features for Point.
RealSpaceProvider(unsigned int dimension)
Weighted point of arbitrary dimension.
Definition: point.h:17