summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
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 d492e8d..6065343 100644
--- a/src/util/vector.h
+++ b/src/util/vector.h
@@ -54,6 +54,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 ); }
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]; }