summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-25 21:33:23 +0100
committermadmaxoft <github@xoft.cz>2014-03-25 21:59:41 +0100
commit0984cf9deb4b60e119adeac56c5d891d2a7cbec6 (patch)
tree0d996f62df4bffaa3b1a97cce0233f28ce8507fe /src
parentInfoReg updated for multi-verb console commands. (diff)
downloadcuberite-0984cf9deb4b60e119adeac56c5d891d2a7cbec6.tar
cuberite-0984cf9deb4b60e119adeac56c5d891d2a7cbec6.tar.gz
cuberite-0984cf9deb4b60e119adeac56c5d891d2a7cbec6.tar.bz2
cuberite-0984cf9deb4b60e119adeac56c5d891d2a7cbec6.tar.lz
cuberite-0984cf9deb4b60e119adeac56c5d891d2a7cbec6.tar.xz
cuberite-0984cf9deb4b60e119adeac56c5d891d2a7cbec6.tar.zst
cuberite-0984cf9deb4b60e119adeac56c5d891d2a7cbec6.zip
Diffstat (limited to '')
-rw-r--r--src/Vector3.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Vector3.h b/src/Vector3.h
index ba4abe3eb..a00e14508 100644
--- a/src/Vector3.h
+++ b/src/Vector3.h
@@ -121,6 +121,13 @@ public:
z += a_Z;
}
+ inline void Move(const Vector3<T> & a_Diff)
+ {
+ x += a_Diff.x;
+ y += a_Diff.y;
+ z += a_Diff.z;
+ }
+
// tolua_end
inline void operator += (const Vector3<T> & a_Rhs)