From efdfdfe6a57c2225e2c314bd138bf13159d706a9 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 23 Feb 2006 18:05:46 +0000 Subject: Moved all LeoCAD units conversion code to a single function, Fixed a bug moving the camera with the modify dialog. git-svn-id: http://svn.leocad.org/trunk@489 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/algebra.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/algebra.h') 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(); } -- cgit v1.2.3