Go to the source code of this file.
| Defines | |
| #define | IS_THRESHOLD_ZERO(value, threshold) ((value) < (threshold) && (value) > -(threshold)) | 
| #define | IS_THRESHOLD_EQUAL(value1, value2, threshold) (IS_THRESHOLD_ZERO((value1) - (value2), threshold)) | 
| #define | IS_THRESHOLD_COMPEQ(value1, value2, threshold) (cfloor(value1 / threshold + 0.5f) == cfloor(value2 / threshold + 0.5f)) | 
| #define | NEARLY_ZERO(FLOATTYPE) (get_nearly_zero_value((FLOATTYPE)0)) | 
| #define | IS_NEARLY_ZERO(value) (IS_THRESHOLD_ZERO(value, get_nearly_zero_value(value))) | 
| #define | IS_NEARLY_EQUAL(value1, value2) (IS_THRESHOLD_EQUAL(value1, value2, get_nearly_zero_value(value1))) | 
| #define | MAYBE_ZERO(value) (IS_NEARLY_ZERO(value) ? 0.0 : (value)) | 
| Functions | |
| INLINE_LINMATH double | get_nearly_zero_value (double) | 
| INLINE_LINMATH float | get_nearly_zero_value (float) | 
Definition in file nearly_zero.h.
| 
 | 
| 
 Definition at line 70 of file nearly_zero.h. | 
| 
 | 
| 
 Definition at line 65 of file nearly_zero.h. | 
| 
 | 
| 
 Definition at line 55 of file nearly_zero.h. Referenced by FLOATNAME(). | 
| 
 | 
| 
 Definition at line 47 of file nearly_zero.h. Referenced by SceneGraphAnalyzer::collect_statistics(), FLOATNAME(), and CollisionPolygon::make_copy(). | 
| 
 | 
| 
 Definition at line 42 of file nearly_zero.h. | 
| 
 | 
| 
 Definition at line 76 of file nearly_zero.h. | 
| 
 | 
| 
 Definition at line 61 of file nearly_zero.h. Referenced by FLOATNAME(). | 
| 
 | 
| 
 Definition at line 35 of file nearly_zero.h. | 
| 
 | 
| 
 Definition at line 30 of file nearly_zero.h. References INLINE_LINMATH. | 
 1.3
1.3