summaryrefslogtreecommitdiff
path: root/common/algebra.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/algebra.h')
-rw-r--r--common/algebra.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/algebra.h b/common/algebra.h
index 826fe7a..4a34b36 100644
--- a/common/algebra.h
+++ b/common/algebra.h
@@ -299,6 +299,9 @@ public:
friend inline Vector3 operator*=(Vector3& a, float b)
{ a.m_Value = a.m_Value * b; return a; }
+ friend inline Vector3 operator/=(Vector3& a, float b)
+ { a.m_Value = a.m_Value / b; return a; }
+
// Other functions.
inline float Length() const
{ return m_Value.Length3(); }