summaryrefslogtreecommitdiff
path: root/common/algebra.h
diff options
context:
space:
mode:
authorleo2006-02-23 18:05:46 +0000
committerleo2006-02-23 18:05:46 +0000
commitefdfdfe6a57c2225e2c314bd138bf13159d706a9 (patch)
tree5e0a6532ac5a81f653d66e7ea791b6f5273d74bc /common/algebra.h
parentbbaf5427cfd8c064a7daf0880fba0d8d5c7a8ab3 (diff)
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
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(); }