Added != method to Vec2,Vec3,Vec4 and did further work on the

AttributeUpdateFunctors.
This commit is contained in:
Robert Osfield
2001-10-12 20:05:55 +00:00
parent cb17e99420
commit 9db63dfd5d
5 changed files with 34 additions and 9 deletions

View File

@@ -32,9 +32,11 @@ class Vec2
float _v[2];
const bool operator == (const Vec2& v) const { return _v[0]==v._v[0] && _v[1]==v._v[1]; }
inline const bool operator == (const Vec2& v) const { return _v[0]==v._v[0] && _v[1]==v._v[1]; }
const bool operator < (const Vec2& v) const
inline const bool operator != (const Vec2& v) const { return _v[0]!=v._v[0] || _v[1]!=v._v[1]; }
inline const bool operator < (const Vec2& v) const
{
if (_v[0]<v._v[0]) return true;
else if (_v[0]>v._v[0]) return false;