NeoPZ
Public Member Functions | Private Attributes | List of all members
TPZLine Class Reference

Implements a line. Utility. More...

#include <pzline.h>

Collaboration diagram for TPZLine:
[legend]

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...
 

Detailed Description

Implements a line. Utility.

Author
Renato Gomes Damas
Since
Apr 16, 2002.

Definition at line 18 of file pzline.h.

Constructor & Destructor Documentation

◆ TPZLine()

TPZLine::TPZLine ( )

Definition at line 16 of file pzline.cpp.

References fTolerance.

◆ ~TPZLine()

TPZLine::~TPZLine ( )

Definition at line 20 of file pzline.cpp.

Member Function Documentation

◆ Belongs()

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().

◆ GetTolerance()

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.

◆ SetLine()

void TPZLine::SetLine ( const TPZVec< REAL > &  point,
const TPZVec< REAL > &  dir 
)

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().

◆ SetTolerance()

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.

Member Data Documentation

◆ fDirection

TPZVec<REAL> TPZLine::fDirection
private

Vector direction of the line.

Definition at line 40 of file pzline.h.

Referenced by Belongs(), and SetLine().

◆ fPoint

TPZVec<REAL> TPZLine::fPoint
private

Any point belongs at the line.

Definition at line 37 of file pzline.h.

Referenced by Belongs(), and SetLine().

◆ fTolerance

REAL TPZLine::fTolerance
private

Tolerance value to computes.

Definition at line 43 of file pzline.h.

Referenced by Belongs(), GetTolerance(), SetTolerance(), and TPZLine().


The documentation for this class was generated from the following files: