Panda3D
Public Member Functions | Public Attributes
floating_point_threshold< Key > Class Template Reference

Compares two floating point numbers, within threshold of equivalence. More...

#include "stl_compares.h"

List of all members.

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

Detailed Description

template<class Key>
class floating_point_threshold< Key >

Compares two floating point numbers, within threshold of equivalence.

Definition at line 65 of file stl_compares.h.


Member Function Documentation

template<class Key >
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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations