CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OdGeTol Class Reference

#include <GeTol.h>

Public Member Functions

 OdGeTol (double t=1.e-10)
 
 OdGeTol (double t1, double t2)
 
double equalPoint () const
 
double equalVector () const
 
void setEqualPoint (double val)
 
void setEqualVector (double val)
 

Detailed Description

This class represents tolerances for vectors or points coincidence.
For evaluating points and vectors OdGeTol stores the equalPoint and equalVector values which are used as follows:

  1. Two points, p1 and p2, are equal if (p1 - p2).length() <= equalPoint.
  2. Two vectors, v1 and v2, are equal if (v1 - v2).length() <= equalVector.
  3. Two vectors, v1 and v2, are parallel if v1/v1.length() - v2/v2.length()).length() < equalVector OR (v1/v1.length() + v2/v2.length()).length() < equalVector.
  4. Two vectors, v1 and v2, are perpendicular if abs((v1.dotProduct(v2))/(v1.length()*v2.length())) <= equalVector.
  5. Two lines or rays are parallel (or perpendicular) if their directional vectors are parallel (or perpendicular).

    Corresponding C++ library: TD_Ge

    <group OdGe_Classes>

    See also
    <link ge_OdGeTol, Working with Tolerances>

Definition at line 48 of file GeTol.h.

Constructor & Destructor Documentation

◆ OdGeTol() [1/2]

OdGeTol::OdGeTol ( double  t = 1.e-10)
inline

Constructor for the OdGeTol class.

Parameters
t[in] The tolerance for vector and point evaluation.

Definition at line 57 of file GeTol.h.

◆ OdGeTol() [2/2]

OdGeTol::OdGeTol ( double  t1,
double  t2 
)
inline

Constructor for the OdGeTol class.

Parameters
t1[in] The tolerance for point evaluation.
t2[in] The tolerance for vector evaluation.

Definition at line 68 of file GeTol.h.

Member Function Documentation

◆ equalPoint()

double OdGeTol::equalPoint ( ) const
inline

Returns the equalPoint tolerance.

Definition at line 76 of file GeTol.h.

◆ equalVector()

double OdGeTol::equalVector ( ) const
inline

Returns the equalVector tolerance.

Definition at line 84 of file GeTol.h.

◆ setEqualPoint()

void OdGeTol::setEqualPoint ( double  val)
inline

Sets the equalPoint tolerance to a specified value.

Parameters
val[in] The tolerance for point evaluation.

Definition at line 94 of file GeTol.h.

◆ setEqualVector()

void OdGeTol::setEqualVector ( double  val)
inline

Sets the equalVector tolerance to a specified value.

Parameters
val[in] The tolerance for vector evaluation.

Definition at line 104 of file GeTol.h.


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