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 at line 67 of file nearly_zero.h. Referenced by ACMatrixSwitchType::output_value(). |
|
Definition at line 62 of file nearly_zero.h. Referenced by BoundingSphere::contains_lineseg(), LinearCylinderVortexForce::get_child_vector(), CollisionSphere::intersects_line(), and PT(). |
|
Definition at line 52 of file nearly_zero.h. Referenced by FLOATNAME(). |
|
Definition at line 44 of file nearly_zero.h. Referenced by SceneGraphAnalyzer::consider_normals(), FFTCompressor::read_hprs(), and CollisionPolygon::verify_points(). |
|
Definition at line 39 of file nearly_zero.h. Referenced by CollisionHandlerFloor::handle_entries(). |
|
Definition at line 73 of file nearly_zero.h. |
|
Definition at line 58 of file nearly_zero.h. |
|
Definition at line 32 of file nearly_zero.h. |
|
Definition at line 27 of file nearly_zero.h. |