MINT2
HyperPlane.h
Go to the documentation of this file.
1 
11 #ifndef HYPERPLANE_HH
12 #define HYPERPLANE_HH
13 
14 // HyperPlot includes
15 #include "Mint/MessageService.h"
16 #include "Mint/HyperPoint.h"
17 #include "Mint/NPlane.h"
18 #include "Mint/HyperLine.h"
19 
20 // Root includes
21 #include "TDecompLU.h"
22 
23 // std includes
24 
25 class HyperPlane : public NPlane {
26 
27  public:
28 
29  //you need #dim points to define a hyperplane. These are passed via a HyperPointSet
30 
31  HyperPlane(const HyperPointSet& a);
32 
33  virtual void print(std::ostream& os=std::cout, int endline=1) const;
34 
35  //These find plane - point interceptions
36  bool pointInPlane(const HyperPoint& hyperPoint) const;
37  HyperPoint findPlaneIntersectionParameters(const HyperPoint& hyperPoint, int dimToOmmit = 0) const;
40  //These find plane - line interceptions
41 
42  HyperPoint findIntersectionPoint(const HyperLine& hyperLine) const;
44  HyperPoint findLineIntersectionParameter (const HyperLine& hyperLine) const;
48  TMatrixD findIntersectionSolution (const HyperLine& hyperLine) const;
51  bool operator ==(const HyperPlane& other) const;
52 
53  ~HyperPlane();
54 
55 };
56 
57 
58 
59 #endif
60 
virtual void print(std::ostream &os=std::cout, int endline=1) const
Definition: HyperPlane.cpp:20
bool pointInPlane(const HyperPoint &hyperPoint) const
Definition: HyperPlane.cpp:37
Definition: NPlane.h:30
bool operator==(const HyperPlane &other) const
Definition: HyperPlane.cpp:227
HyperPoint findLineIntersectionParameter(const HyperLine &hyperLine) const
Definition: HyperPlane.cpp:142
HyperPlane(const HyperPointSet &a)
Definition: HyperPlane.cpp:7
HyperPoint findPlaneIntersectionParameters(const HyperPoint &hyperPoint, int dimToOmmit=0) const
Definition: HyperPlane.cpp:57
TMatrixD findIntersectionSolution(const HyperLine &hyperLine) const
Definition: HyperPlane.cpp:165
HyperPoint findIntersectionPoint(const HyperLine &hyperLine) const
Definition: HyperPlane.cpp:132