summaryrefslogtreecommitdiff
path: root/include/SSystem/SComponent
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2024-03-13 23:28:01 -0700
committerGitHub <noreply@github.com>2024-03-14 08:28:01 +0200
commite4d6e610f644e919928579256d925d83c8e28684 (patch)
treedd332040fe27d1e7c478148d5660c6d9147e4c50 /include/SSystem/SComponent
parent42418393d5f5b28dad412641747f5e5c8967f290 (diff)
d_a_mirror done, d_a_ni 99% done (#2095)
* d_a_mirror done * d_a_ni 99.9% done * remove asm * some d_a_ni doc * progress
Diffstat (limited to 'include/SSystem/SComponent')
-rw-r--r--include/SSystem/SComponent/c_xyz.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/SSystem/SComponent/c_xyz.h b/include/SSystem/SComponent/c_xyz.h
index 54d717a73d..4a3e7ba402 100644
--- a/include/SSystem/SComponent/c_xyz.h
+++ b/include/SSystem/SComponent/c_xyz.h
@@ -52,6 +52,13 @@ struct cXyz : Vec {
y -= f;
z -= f;
}
+
+ void operator*=(const Vec& other) {
+ x *= other.x;
+ y *= other.y;
+ z *= other.z;
+ }
+
void operator-=(const Vec& other) { VECSubtract(this, &other, this); }
void operator+=(const Vec& other) { VECAdd(this, &other, this); }
void operator*=(f32 scale) { VECScale(this, this, scale); }