summaryrefslogtreecommitdiff
path: root/include/SSystem
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2024-03-27 23:49:59 -0700
committerGitHub <noreply@github.com>2024-03-28 08:49:59 +0200
commit483253ae430ed0687468cf78b384d4328e005195 (patch)
tree7282fc82b047690c5fd74d7fddc906b89b1221d1 /include/SSystem
parenta9d182d6cf0d4d49d4dd937294c858377128d5e0 (diff)
b_bq done (except weak funcs) (#2110)
Diffstat (limited to 'include/SSystem')
-rw-r--r--include/SSystem/SComponent/c_xyz.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/SSystem/SComponent/c_xyz.h b/include/SSystem/SComponent/c_xyz.h
index 4a3e7ba402..2c72252744 100644
--- a/include/SSystem/SComponent/c_xyz.h
+++ b/include/SSystem/SComponent/c_xyz.h
@@ -1,8 +1,8 @@
#ifndef C_XYZ_H
#define C_XYZ_H
-#include "math.h"
#include "dolphin/mtx/vec.h"
+#include "math.h"
struct cXyz : Vec {
static const cXyz Zero;
@@ -40,7 +40,6 @@ struct cXyz : Vec {
/* 80266B84 */ cXyz operator*(f32) const;
/* 80266BD0 */ cXyz operator*(Vec const&) const;
/* 80266C18 */ cXyz operator/(f32) const;
- /* 800977D8 */ // void operator=(cXyz const&);
void operator+=(f32 f) {
x += f;
@@ -60,7 +59,10 @@ struct cXyz : Vec {
}
void operator-=(const Vec& other) { VECSubtract(this, &other, this); }
- void operator+=(const Vec& other) { VECAdd(this, &other, this); }
+ cXyz* operator+=(const Vec& other) {
+ VECAdd(this, &other, this);
+ return this;
+ }
void operator*=(f32 scale) { VECScale(this, this, scale); }
void operator/=(f32 scale) { VECScale(this, this, 1.0f / scale); }
/* 80266C6C */ cXyz getCrossProduct(Vec const&) const;