summaryrefslogtreecommitdiffstats
path: root/src/Vector3.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-04-15 14:15:56 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-04-15 14:15:56 +0200
commit82b3d543e7bcdbffb34f9fb555c2acb6fb9b10d9 (patch)
tree1fad85f7d68f68ac4e25225e73d87c5a7bbb85c4 /src/Vector3.h
parentEntities handle chunks properly again (diff)
downloadcuberite-82b3d543e7bcdbffb34f9fb555c2acb6fb9b10d9.tar
cuberite-82b3d543e7bcdbffb34f9fb555c2acb6fb9b10d9.tar.gz
cuberite-82b3d543e7bcdbffb34f9fb555c2acb6fb9b10d9.tar.bz2
cuberite-82b3d543e7bcdbffb34f9fb555c2acb6fb9b10d9.tar.lz
cuberite-82b3d543e7bcdbffb34f9fb555c2acb6fb9b10d9.tar.xz
cuberite-82b3d543e7bcdbffb34f9fb555c2acb6fb9b10d9.tar.zst
cuberite-82b3d543e7bcdbffb34f9fb555c2acb6fb9b10d9.zip
Diffstat (limited to 'src/Vector3.h')
-rw-r--r--src/Vector3.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Vector3.h b/src/Vector3.h
index a00e14508..2c79f9ff1 100644
--- a/src/Vector3.h
+++ b/src/Vector3.h
@@ -108,6 +108,11 @@ public:
return x == a_Rhs.x && y == a_Rhs.y && z == a_Rhs.z;
}
+ inline bool operator == (const Vector3<T> & a_Rhs) const
+ {
+ return Equals(a_Rhs);
+ }
+
inline bool operator < (const Vector3<T> & a_Rhs)
{
// return (x < a_Rhs.x) && (y < a_Rhs.y) && (z < a_Rhs.z); ?