summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-30 11:31:49 +0200
committeraap <aap@papnet.eu>2020-04-30 11:31:49 +0200
commitb7141037036684e3857d785a334cfa45433e1728 (patch)
tree30d962526232c813e8354045e00d0d3cf5f7442b /src
parentJap fixes (diff)
downloadre3-b7141037036684e3857d785a334cfa45433e1728.tar
re3-b7141037036684e3857d785a334cfa45433e1728.tar.gz
re3-b7141037036684e3857d785a334cfa45433e1728.tar.bz2
re3-b7141037036684e3857d785a334cfa45433e1728.tar.lz
re3-b7141037036684e3857d785a334cfa45433e1728.tar.xz
re3-b7141037036684e3857d785a334cfa45433e1728.tar.zst
re3-b7141037036684e3857d785a334cfa45433e1728.zip
Diffstat (limited to 'src')
-rw-r--r--src/math/Vector.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/math/Vector.h b/src/math/Vector.h
index 44e646e9..5a6efcb3 100644
--- a/src/math/Vector.h
+++ b/src/math/Vector.h
@@ -95,6 +95,10 @@ public:
return x == right.x && y == right.y && z == right.z;
}
+ const bool operator!=(CVector const &right) {
+ return x != right.x || y != right.y || z != right.z;
+ }
+
bool IsZero(void) const { return x == 0.0f && y == 0.0f && z == 0.0f; }
};