NeoPZ
pzline.h
Go to the documentation of this file.
1 
6 #ifndef TPZLINE_H
7 #define TPZLINE_H
8 #include "pzvec.h"
9 #include "pzreal.h"
10 #include <cmath>
11 
18 class TPZLine {
19 public:
20  TPZLine();
21  ~TPZLine();
22 
24  void SetLine(const TPZVec<REAL> &point, const TPZVec<REAL> &dir);
25 
27  bool Belongs(const TPZVec<REAL> &point);
28 
30  REAL GetTolerance();
31 
33  void SetTolerance(const REAL &tol);
34 
35 private:
38 
41 
43  REAL fTolerance;
44 };
45 
46 #endif
TPZVec< REAL > fPoint
Any point belongs at the line.
Definition: pzline.h:37
REAL GetTolerance()
Returns the tolerance value considered to compute.
Definition: pzline.cpp:53
Implements a line. Utility.
Definition: pzline.h:18
Templated vector implementation.
REAL fTolerance
Tolerance value to computes.
Definition: pzline.h:43
void SetLine(const TPZVec< REAL > &point, const TPZVec< REAL > &dir)
Store a point and direction vector of the line.
Definition: pzline.cpp:24
static const double tol
Definition: pzgeoprism.cpp:23
TPZLine()
Definition: pzline.cpp:16
bool Belongs(const TPZVec< REAL > &point)
Verify whether the point belongs at the line.
Definition: pzline.cpp:31
~TPZLine()
Definition: pzline.cpp:20
Contains the declaration of TPZFlopCounter class and TPZCounter struct.
TPZVec< REAL > fDirection
Vector direction of the line.
Definition: pzline.h:40
void SetTolerance(const REAL &tol)
Sets the tolerance value to compute.
Definition: pzline.cpp:48