NeoPZ
pzplane.h
Go to the documentation of this file.
1 
6 #ifndef TPZPLANE_H
7 #define TPZPLANE_H
8 
9 #include <cmath>
10 #include <iostream>
11 #include "pzvec.h"
12 #include "pznumeric.h"
13 
19 class TPZPlane {
20 
21 public:
23  TPZPlane();
25  ~TPZPlane();
26 
28  int SetPlane(const TPZVec<REAL> &p1, const TPZVec<REAL> &p2, const TPZVec<REAL> &p3);
29 
31  bool Belongs(const TPZVec<REAL> &point);
32 
34  bool Belongs(const TPZVec<REAL> &ponto1, const TPZVec<REAL> &ponto2, const TPZVec<REAL> &ponto3);
35 
36 private:
37 
40 
41 };
42 
43 #endif
~TPZPlane()
Destructor.
Definition: pzplane.cpp:14
Templated vector implementation.
int SetPlane(const TPZVec< REAL > &p1, const TPZVec< REAL > &p2, const TPZVec< REAL > &p3)
Computes the equation of the plane from three given points.
Definition: pzplane.cpp:18
Implements a plane (stores the plane equation). Utility.
Definition: pzplane.h:19
TPZPlane()
Simple constructor.
Definition: pzplane.cpp:12
TPZVec< REAL > fCoef
Coefficients of the plane with equation: fCoef[0]*x + fCoef[1]*y + fCoef[2]*z + fCoef[3] = 0...
Definition: pzplane.h:39
bool Belongs(const TPZVec< REAL > &point)
Check whether the point belongs at the plane.
Definition: pzplane.cpp:87
Contains declaration of the TPZNumeric class which implements several methods to calculation.