44 #define SNAP_TOLERANCE (FLT_EPSILON * 16.0)
91 operator double()
const
302 double frac = std::modf(
m_dVal, &intval);
312 if (frac < SNAP_TOLERANCE) {
317 if ((1.0 - frac) < SNAP_TOLERANCE) {
327 inline double pow(
double x,
const CSnapValue& y)
bool operator>(const int &rhs) const
Definition: SnapValue.h:278
bool operator>=(const double &rhs) const
Definition: SnapValue.h:258
bool operator<(const double &rhs) const
Definition: SnapValue.h:233
CSnapValue & operator=(const CSnapValue &rhs)
Definition: SnapValue.h:98
CSnapValue(double val)
Definition: SnapValue.h:73
bool operator!=(const CSnapValue &rhs) const
Definition: SnapValue.h:211
CSnapValue(const CSnapValue &src)
Definition: SnapValue.h:67
const CSnapValue operator/(const CSnapValue &rhs) const
Definition: SnapValue.h:123
CSnapValue(int val)
Definition: SnapValue.h:85
bool operator<=(const int &rhs) const
Definition: SnapValue.h:283
const CSnapValue operator++(int)
Definition: SnapValue.h:178
const CSnapValue operator*(const CSnapValue &rhs) const
Definition: SnapValue.h:111
CSnapValue & operator++()
Definition: SnapValue.h:165
CSnapValue & operator+=(const CSnapValue &rhs)
Definition: SnapValue.h:128
CSnapValue & operator/=(const CSnapValue &rhs)
Definition: SnapValue.h:116
bool operator<(const CSnapValue &rhs) const
Definition: SnapValue.h:201
bool operator==(const double &rhs) const
Definition: SnapValue.h:238
const CSnapValue operator-() const
Definition: SnapValue.h:157
double m_dVal
Definition: SnapValue.h:324
CSnapValue & operator-=(const CSnapValue &rhs)
Definition: SnapValue.h:145
bool operator<(const int &rhs) const
Definition: SnapValue.h:263
const CSnapValue operator+() const
Definition: SnapValue.h:140
bool operator>(const double &rhs) const
Definition: SnapValue.h:248
bool operator==(const CSnapValue &rhs) const
Definition: SnapValue.h:206
bool operator==(const int &rhs) const
Definition: SnapValue.h:268
bool operator<=(const CSnapValue &rhs) const
Definition: SnapValue.h:221
CSnapValue()
Definition: SnapValue.h:62
Definition: SnapValue.h:46
const CSnapValue operator--(int)
Definition: SnapValue.h:185
bool operator>(const CSnapValue &rhs) const
Definition: SnapValue.h:216
CSnapValue & operator--()
Definition: SnapValue.h:171
CSnapValue(const CSnapValue &src, bool dummyflag)
Definition: SnapValue.h:52
CSnapValue(float val)
Definition: SnapValue.h:79
bool operator!=(const int &rhs) const
Definition: SnapValue.h:273
bool operator<=(const double &rhs) const
Definition: SnapValue.h:253
CSnapValue & operator*=(const CSnapValue &rhs)
Definition: SnapValue.h:104
const double & GetValue() const
Definition: SnapValue.h:192
const CSnapValue operator-(const CSnapValue &rhs) const
Definition: SnapValue.h:152
bool operator>=(const CSnapValue &rhs) const
Definition: SnapValue.h:226
bool operator>=(const int &rhs) const
Definition: SnapValue.h:288
const CSnapValue operator+(const CSnapValue &rhs) const
Definition: SnapValue.h:135
void Snap()
Definition: SnapValue.h:294
bool operator!=(const double &rhs) const
Definition: SnapValue.h:243