From b7141037036684e3857d785a334cfa45433e1728 Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 30 Apr 2020 11:31:49 +0200 Subject: fixed CVector != --- src/math/Vector.h | 4 ++++ 1 file changed, 4 insertions(+) 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; } }; -- cgit v1.2.3