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:
- Two points, p1 and p2, are equal if (p1 - p2).length() <= equalPoint.
- Two vectors, v1 and v2, are equal if (v1 - v2).length() <= equalVector.
- 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.
- Two vectors, v1 and v2, are perpendicular if abs((v1.dotProduct(v2))/(v1.length()*v2.length())) <= equalVector.
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.html, Working with Tolerances>
Definition at line 48 of file GeTol.h.