diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-06-13 13:16:44 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-06-13 13:16:44 +0200 |
commit | ed2a562372f15a0bf0f60ac47f89fa11d331776e (patch) | |
tree | f7af259e19787bc20efcb59354809bec56dcb413 /vector.cpp | |
parent | e483f468085379a986cbc48bb13a7983315475cf (diff) |
Added != operator to Vector3.
Diffstat (limited to 'vector.cpp')
-rw-r--r-- | vector.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -83,6 +83,10 @@ bool Vector3::operator==(const Vector3& v) { return x == v.x && y == v.y && z == v.z; } +bool Vector3::operator!=(const Vector3& v) { + return !(*this == v); +} + Vector3& Vector3::operator+=(const Vector3& v) { x += v.x; y += v.y; |