summaryrefslogtreecommitdiff
path: root/include/egg/math/eggVector.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/egg/math/eggVector.h')
-rw-r--r--include/egg/math/eggVector.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/egg/math/eggVector.h b/include/egg/math/eggVector.h
index f1256a6a..34ccb324 100644
--- a/include/egg/math/eggVector.h
+++ b/include/egg/math/eggVector.h
@@ -36,6 +36,10 @@ struct Vector3f : public nw4r::math::VEC3 {
return *this;
}
+ void mul(const Vector3f &v, const Vector3f &w) {
+ set(v.x * w.x, v.y * w.y, v.z * w.z);
+ }
+
Vector3f &operator*=(const Vector3f &v) {
set(x * v.x, y * v.y, z * v.z);
return *this;