Panda3D
|
Compares two floating point numbers, within threshold of equivalence. More...
#include "stl_compares.h"
Public Member Functions | |
floating_point_threshold (Key threshold=get_nearly_zero_value((Key) 0)) | |
bool | operator() (const Key &a, const Key &b) const |
Returns true if a sorts before b, false otherwise. | |
Public Attributes | |
const Key | _threshold |
Compares two floating point numbers, within threshold of equivalence.
Definition at line 65 of file stl_compares.h.
bool floating_point_threshold< Key >::operator() | ( | const Key & | a, |
const Key & | b | ||
) | const [inline] |
Returns true if a sorts before b, false otherwise.
Definition at line 34 of file stl_compares.I.