35#define SNAP_TOLERANCE (FLT_EPSILON * 16.0)
83 operator double()
const
295 double frac = modf(
m_dVal,&intval);
307 if (frac < SNAP_TOLERANCE)
315 if ((1.0 - frac) < SNAP_TOLERANCE)
327inline double pow(
double x,
const CSnapValue &y)
Definition: SnapValue.h:38
bool operator!=(const double &rhs) const
Definition: SnapValue.h:236
void Snap()
Definition: SnapValue.h:287
bool operator<=(const int &rhs) const
Definition: SnapValue.h:276
CSnapValue & operator/=(const CSnapValue &rhs)
Definition: SnapValue.h:108
CSnapValue(const CSnapValue &src)
Definition: SnapValue.h:59
CSnapValue(const CSnapValue &src, bool)
Definition: SnapValue.h:44
bool operator>=(const int &rhs) const
Definition: SnapValue.h:281
const CSnapValue operator-(const CSnapValue &rhs) const
Definition: SnapValue.h:144
CSnapValue & operator=(const CSnapValue &rhs)
Definition: SnapValue.h:90
bool operator!=(const CSnapValue &rhs) const
Definition: SnapValue.h:204
bool operator>=(const CSnapValue &rhs) const
Definition: SnapValue.h:219
CSnapValue()
Definition: SnapValue.h:54
CSnapValue(int val)
Definition: SnapValue.h:77
const double & GetValue() const
Definition: SnapValue.h:184
CSnapValue(float val)
Definition: SnapValue.h:71
bool operator!=(const int &rhs) const
Definition: SnapValue.h:266
double m_dVal
Definition: SnapValue.h:324
bool operator>(const int &rhs) const
Definition: SnapValue.h:271
CSnapValue & operator-=(const CSnapValue &rhs)
Definition: SnapValue.h:137
const CSnapValue operator*(const CSnapValue &rhs) const
Definition: SnapValue.h:103
bool operator<(const CSnapValue &rhs) const
Definition: SnapValue.h:194
bool operator>(const CSnapValue &rhs) const
Definition: SnapValue.h:209
CSnapValue & operator++()
Definition: SnapValue.h:157
const CSnapValue operator+() const
Definition: SnapValue.h:132
CSnapValue(double val)
Definition: SnapValue.h:65
bool operator>(const double &rhs) const
Definition: SnapValue.h:241
bool operator<=(const CSnapValue &rhs) const
Definition: SnapValue.h:214
CSnapValue & operator--()
Definition: SnapValue.h:163
bool operator==(const CSnapValue &rhs) const
Definition: SnapValue.h:199
const CSnapValue operator-() const
Definition: SnapValue.h:149
const CSnapValue operator/(const CSnapValue &rhs) const
Definition: SnapValue.h:115
bool operator>=(const double &rhs) const
Definition: SnapValue.h:251
const CSnapValue operator+(const CSnapValue &rhs) const
Definition: SnapValue.h:127
CSnapValue & operator+=(const CSnapValue &rhs)
Definition: SnapValue.h:120
CSnapValue & operator*=(const CSnapValue &rhs)
Definition: SnapValue.h:96
const CSnapValue operator++(int)
Definition: SnapValue.h:170
const CSnapValue operator--(int)
Definition: SnapValue.h:177
bool operator<=(const double &rhs) const
Definition: SnapValue.h:246