summaryrefslogtreecommitdiff
path: root/vector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vector.cpp')
-rw-r--r--vector.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/vector.cpp b/vector.cpp
index cf2c164..29fbdc7 100644
--- a/vector.cpp
+++ b/vector.cpp
@@ -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;