From 13b96a40eafb5cff2a07642e8fb46443baa435c8 Mon Sep 17 00:00:00 2001 From: STRWarrior Date: Tue, 7 Apr 2015 13:25:55 +0200 Subject: Added extra divide operator to Vector3. The multiply operator had one for both a different vector and a number, but the divide operator didn't. --- src/Vector3.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 operator / (const Vector3 & a_Rhs) + { + return Vector3( + x / a_Rhs.x, + y / a_Rhs.y, + z / a_Rhs.z + ); + } + inline Vector3 operator * (T a_v) const { return Vector3( -- cgit v1.2.3