BICO 1.1

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

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs 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
13 RealSpaceProvider* RealSpaceProvider::clone() const
14 {
15 return new RealSpaceProvider(*this);
16 }
17
18 Point RealSpaceProvider::nullVector() const
19 {
20 std::vector<double> coords(dimension, 0);
21 return Point(coords, 1);
22 }
23
24 }
25
CluE::RealSpaceProvider::nullVector
virtual V nullVector() const
Definition: realspaceprovider.cpp:18
CluE::RealSpaceProvider::clone
virtual RealSpaceProvider * clone() const
Definition: realspaceprovider.cpp:13
realspaceprovider.h
CluE::RealSpaceProvider::dimension
unsigned int dimension
Definition: realspaceprovider.h:25
CluE::RealSpaceProvider
Provides euclidean vector space features for Point.
Definition: realspaceprovider.h:15
CluE::RealSpaceProvider::RealSpaceProvider
RealSpaceProvider(unsigned int dimension)
Definition: realspaceprovider.cpp:8
CluE::Point
Weighted point of arbitrary dimension.
Definition: point.h:17