|
VTK
|
Functions | |
| template<class A > | |
| bool | FuzzyCompare (A a, A b) |
| template<class A > | |
| bool | FuzzyCompare (A a, A b, A epsilon) |
| template<class A > | |
| A | SafeDivision (A a, A b) |
| template<class A > | |
| bool | NearlyEqual (A a, A b, A tol=std::numeric_limits< A >::epsilon()) |
| bool vtkMathUtilities::FuzzyCompare | ( | A | a, |
| A | b | ||
| ) |
Perform a fuzzy compare of floats/doubles.
Definition at line 41 of file vtkMathUtilities.h.
| bool vtkMathUtilities::FuzzyCompare | ( | A | a, |
| A | b, | ||
| A | epsilon | ||
| ) |
Perform a fuzzy compare of floats/doubles, specify the allowed tolerance
Definition at line 51 of file vtkMathUtilities.h.
| A vtkMathUtilities::SafeDivision | ( | A | a, |
| A | b | ||
| ) |
Performs safe division that catches overflow and underflow.
Definition at line 60 of file vtkMathUtilities.h.
| bool vtkMathUtilities::NearlyEqual | ( | A | a, |
| A | b, | ||
| A | tol = std::numeric_limits<A>::epsilon() |
||
| ) |
A slightly different fuzzy comparator that checks if two values are "nearly" equal based on Knuth, "The Art of Computer Programming (vol II)"
Definition at line 85 of file vtkMathUtilities.h.
1.8.0