summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-03-03 23:35:50 +0100
committeraura <nw@moneybot.cc>2026-03-03 23:35:50 +0100
commit7466c0415415052cda55f02befb720d2a348b6c9 (patch)
treec0f2ada5142baf75a83eae875c5c5dba68f06bdd /src/util
parente57cac01b0a4eb764185e8eca9396a25b83f34d3 (diff)
smoother walls
Diffstat (limited to 'src/util')
-rw-r--r--src/util/vector.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/vector.h b/src/util/vector.h
index 33409a7..a01689c 100644
--- a/src/util/vector.h
+++ b/src/util/vector.h
@@ -55,6 +55,7 @@ struct VEC3 {
VEC3( const VEC2& v ) { x = v.x; y = v.y; z = 0.f; }
bool operator==( const VEC3& v ) const { return ( x == v.x && y == v.y && z == v.z ); }
+ bool operator!=( const VEC3& v ) const { return !( x == v.x && y == v.y && z == v.z ); }
VEC3& operator=( const VEC3& v ) { x = v.x; y = v.y; z = v.z; return *this; }
F32& operator[]( I32 i ) { return ( (F32*)this )[i]; }
F32 operator[]( I32 i ) const { return ( (F32*)this )[i]; }