diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2015-04-07 13:25:55 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2015-04-07 13:25:55 +0200 |
commit | 13b96a40eafb5cff2a07642e8fb46443baa435c8 (patch) | |
tree | c13807a4a376f7dd128a8d2a96768e269f9dc534 | |
parent | Update GETTING-STARTED.md (diff) | |
download | cuberite-13b96a40eafb5cff2a07642e8fb46443baa435c8.tar cuberite-13b96a40eafb5cff2a07642e8fb46443baa435c8.tar.gz cuberite-13b96a40eafb5cff2a07642e8fb46443baa435c8.tar.bz2 cuberite-13b96a40eafb5cff2a07642e8fb46443baa435c8.tar.lz cuberite-13b96a40eafb5cff2a07642e8fb46443baa435c8.tar.xz cuberite-13b96a40eafb5cff2a07642e8fb46443baa435c8.tar.zst cuberite-13b96a40eafb5cff2a07642e8fb46443baa435c8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Vector3.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Vector3.h b/src/Vector3.h index 1f3f6b955..36f277ba4 100644 --- a/src/Vector3.h +++ b/src/Vector3.h @@ -244,6 +244,15 @@ public: ); } + inline Vector3<T> operator / (const Vector3<T> & a_Rhs) + { + return Vector3<T>( + x / a_Rhs.x, + y / a_Rhs.y, + z / a_Rhs.z + ); + } + inline Vector3<T> operator * (T a_v) const { return Vector3<T>( |