politopix  4.1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Rn.h
Go to the documentation of this file.
1 // politopix allows to make computations on polytopes such as finding vertices, intersecting, Minkowski sums, ...
2 // Copyright (C) 2011-2015 : Delos Vincent
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
19 // I2M (UMR CNRS 5295 / University of Bordeaux)
20 
21 #ifndef INC_Rn
22 #define INC_Rn
23 
24 #include "polito_Export.h"
25 
27 class Rn {
28 
29  public:
30  Rn() {}
31 
33  static polito_EXPORT void setDimension(unsigned int dim);
34 
36  static polito_EXPORT unsigned int getDimension();
37 
39  static polito_EXPORT double getTolerance();
40 
42  static polito_EXPORT void setTolerance(double t);
43 
44  protected:
46  static unsigned int _dimension;
48  static double _tolerance;
49 
50 };
51 
52 #endif // INC_Rn
static polito_EXPORT void setDimension(unsigned int dim)
Set the dimension for the cartesian space we work in.
Definition: Rn.cpp:27
static unsigned int _dimension
Rn dimension.
Definition: Rn.h:46
Rn()
Definition: Rn.h:30
This class stores static function that dispatch the main geometric values we use. ...
Definition: Rn.h:27
static polito_EXPORT void setTolerance(double t)
Give the minimum distance between two points.
Definition: Rn.cpp:33
static polito_EXPORT double getTolerance()
Give the minimum distance between two points.
Definition: Rn.cpp:31
static polito_EXPORT unsigned int getDimension()
Return the dimension of the cartesian space we work in.
Definition: Rn.cpp:29
#define polito_EXPORT
Definition: polito_Export.h:15
static double _tolerance
Rn dimension.
Definition: Rn.h:48