MINT2
NPlane.h
Go to the documentation of this file.
1 
6 #ifndef NPLANE_HH
7 #define NPLANE_HH
8 
9 // HyperPlot includes
10 #include "Mint/MessageService.h"
11 #include "Mint/HyperPoint.h"
12 #include "Mint/HyperPointSet.h"
13 
14 // Root includes
15 
16 // std includes
17 
18 
19 class HyperPointSet;
20 
30 class NPlane {
31 
32  protected:
33 
38  public:
39 
40  //you need #dim points to define a hyperplane. These are passed via a HyperPointSet
41 
42  NPlane(const HyperPointSet& a);
43  NPlane(const HyperPoint& origin, const HyperPointSet& v);
44 
45  int getDimension () const {return _origin.getDimension();}
47  int getN () const {return _v .size();}
51  const HyperPoint& getOrigin() const{ return _origin; }
54  virtual const HyperPoint& getDirection(int i = 0) const{ return _v.at(i); }
58 
59  virtual void print(std::ostream& os=std::cout, int endline=1) const;
60 
61  virtual ~NPlane();
62 
63 };
64 
65 
66 #endif
67 
HyperPointSet _v
Definition: NPlane.h:36
virtual const HyperPoint & getDirection(int i=0) const
Definition: NPlane.h:54
Definition: NPlane.h:30
NPlane(const HyperPointSet &a)
Definition: NPlane.cpp:6
const HyperPoint & getOrigin() const
Definition: NPlane.h:51
int getDimension() const
Definition: NPlane.h:45
virtual ~NPlane()
Definition: NPlane.cpp:71
const HyperPoint & at(int i) const
HyperPoint _origin
Definition: NPlane.h:34
virtual void print(std::ostream &os=std::cout, int endline=1) const
Definition: NPlane.cpp:56
unsigned int size() const
int getN() const
Definition: NPlane.h:47
int getDimension() const
Definition: HyperPoint.h:99
HyperPoint getParametricPoint(const HyperPoint &t) const
Definition: NPlane.cpp:40