NeoPZ
|
Implements a line. Utility. More...
#include <pzline.h>
Public Member Functions | |
TPZLine () | |
~TPZLine () | |
void | SetLine (const TPZVec< REAL > &point, const TPZVec< REAL > &dir) |
Store a point and direction vector of the line. More... | |
bool | Belongs (const TPZVec< REAL > &point) |
Verify whether the point belongs at the line. More... | |
REAL | GetTolerance () |
Returns the tolerance value considered to compute. More... | |
void | SetTolerance (const REAL &tol) |
Sets the tolerance value to compute. More... | |
Private Attributes | |
TPZVec< REAL > | fPoint |
Any point belongs at the line. More... | |
TPZVec< REAL > | fDirection |
Vector direction of the line. More... | |
REAL | fTolerance |
Tolerance value to computes. More... | |
TPZLine::TPZLine | ( | ) |
Definition at line 16 of file pzline.cpp.
References fTolerance.
TPZLine::~TPZLine | ( | ) |
Definition at line 20 of file pzline.cpp.
bool TPZLine::Belongs | ( | const TPZVec< REAL > & | point | ) |
Verify whether the point belongs at the line.
Verifica se o ponto[3] pertence a reta.
Definition at line 31 of file pzline.cpp.
References fDirection, fPoint, fTolerance, TPZVec< T >::NElements(), and TPZNumeric::ProdVetorial().
REAL TPZLine::GetTolerance | ( | ) |
Returns the tolerance value considered to compute.
Fornece a tolerância do cálculo, armazenando em tol.
Definition at line 53 of file pzline.cpp.
References fTolerance.
Store a point and direction vector of the line.
Armazena um ponto da reta e sua direção.
Definition at line 24 of file pzline.cpp.
References fDirection, fPoint, and TPZVec< T >::NElements().
void TPZLine::SetTolerance | ( | const REAL & | tol | ) |
Sets the tolerance value to compute.
Especifica a tolerância para os cálculos
Definition at line 48 of file pzline.cpp.
References fTolerance, and pzgeom::tol.
|
private |
|
private |
|
private |
Tolerance value to computes.
Definition at line 43 of file pzline.h.
Referenced by Belongs(), GetTolerance(), SetTolerance(), and TPZLine().