summaryrefslogtreecommitdiffstats
path: root/src/Vector3.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-06 21:44:55 +0200
committerMattes D <github@xoft.cz>2014-05-06 21:44:55 +0200
commite400b1acd8b0c1457f33bc1730996a3530fa0a4f (patch)
treecd26c0d2b87b62882bcc7b64503de408dd391e6f /src/Vector3.h
parentChanged cPieceGenerator to support pairings. (diff)
parentMerge branch 'master' into fixes (diff)
downloadcuberite-e400b1acd8b0c1457f33bc1730996a3530fa0a4f.tar
cuberite-e400b1acd8b0c1457f33bc1730996a3530fa0a4f.tar.gz
cuberite-e400b1acd8b0c1457f33bc1730996a3530fa0a4f.tar.bz2
cuberite-e400b1acd8b0c1457f33bc1730996a3530fa0a4f.tar.lz
cuberite-e400b1acd8b0c1457f33bc1730996a3530fa0a4f.tar.xz
cuberite-e400b1acd8b0c1457f33bc1730996a3530fa0a4f.tar.zst
cuberite-e400b1acd8b0c1457f33bc1730996a3530fa0a4f.zip
Diffstat (limited to 'src/Vector3.h')
-rw-r--r--src/Vector3.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/Vector3.h b/src/Vector3.h
index 276bf67c9..fed776018 100644
--- a/src/Vector3.h
+++ b/src/Vector3.h
@@ -118,11 +118,6 @@ public:
return (Abs(x - a_Rhs.x) < a_Eps) && (Abs(y - a_Rhs.y) < a_Eps) && (Abs(z - a_Rhs.z) < a_Eps);
}
- inline bool operator == (const Vector3<T> & a_Rhs) const
- {
- return Equals(a_Rhs);
- }
-
inline void Move(T a_X, T a_Y, T a_Z)
{
x += a_X;
@@ -139,6 +134,16 @@ public:
// tolua_end
+ inline bool operator != (const Vector3<T> & a_Rhs) const
+ {
+ return !Equals(a_Rhs);
+ }
+
+ inline bool operator == (const Vector3<T> & a_Rhs) const
+ {
+ return Equals(a_Rhs);
+ }
+
inline void operator += (const Vector3<T> & a_Rhs)
{
x += a_Rhs.x;