summaryrefslogtreecommitdiff
path: root/include/egg/math/eggVector.h
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2025-04-27 14:29:38 +0200
committerrobojumper <robojumper@gmail.com>2025-04-27 14:32:58 +0200
commitca2f6bde481292758263f5898a07da512f75b0ee (patch)
tree1aba9fdbc45b1507a1d35506bfa3b63072dd624d /include/egg/math/eggVector.h
parent225ce0d4ce99fa2c1b34a5486bbc0e0c084b62a6 (diff)
JPADynamicsBlock OK
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;