diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2025-09-25 08:20:46 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-25 18:20:46 +0300 |
| commit | 9a2df2162b7ec4a23ad32915c61d46cf20b5003d (patch) | |
| tree | eaeff68a0e755a6014c559abff39685b3b3e9c14 /include/SSystem | |
| parent | 4635fcb666d7c5f256016d733584712a55f1c130 (diff) | |
d_debug_camera mostly done (#2695)
* d_debug_camera mostly done
* update some alink demo stuff
* some misc debug stuff
Diffstat (limited to 'include/SSystem')
| -rw-r--r-- | include/SSystem/SComponent/c_angle.h | 6 | ||||
| -rw-r--r-- | include/SSystem/SComponent/c_cc_d.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/SSystem/SComponent/c_angle.h b/include/SSystem/SComponent/c_angle.h index af34015ee4..b82c9a1d11 100644 --- a/include/SSystem/SComponent/c_angle.h +++ b/include/SSystem/SComponent/c_angle.h @@ -110,6 +110,12 @@ public: float Sin(void) const; float Cos(void) const; float Tan(void) const; + + operator f32() const { return mDegree; } + + cDegree operator*(float v) const { + return cDegree(mDegree * v); + } }; class cSPolar { diff --git a/include/SSystem/SComponent/c_cc_d.h b/include/SSystem/SComponent/c_cc_d.h index da25eff0cc..7694407de4 100644 --- a/include/SSystem/SComponent/c_cc_d.h +++ b/include/SSystem/SComponent/c_cc_d.h @@ -224,6 +224,7 @@ public: STATIC_ASSERT(0x10 == sizeof(cCcD_ObjCommonBase)); +#pragma push #pragma pack(1) class cCcD_ObjAt : public cCcD_ObjCommonBase { public: @@ -247,7 +248,7 @@ protected: /* 0x14 */ u8 mAtp; /* 0x15 */ u8 field_0x15[3]; }; -#pragma pack() +#pragma pop STATIC_ASSERT(0x18 == sizeof(cCcD_ObjAt)); |
