diff options
| author | Elijah Thomas <42302100+elijah-thomas774@users.noreply.github.com> | 2026-04-18 14:52:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-18 14:52:30 -0400 |
| commit | d3ce7281c6e9ae6644e3670992d417c99043a119 (patch) | |
| tree | f5192ce8573614612338b22397dca58441e9634b /include/m | |
| parent | 17176e3c8334ea0c46fa293a9c463a02789d6d7b (diff) | |
| parent | 9f4cf0c308b483556a513d6b438041a47b52a71a (diff) | |
Merge pull request #307 from elijah-thomas774/remly
dAcEremly_c equivalent. Future Cleanup needed
Diffstat (limited to 'include/m')
| -rw-r--r-- | include/m/m3d/m_anmmdl.h | 7 | ||||
| -rw-r--r-- | include/m/m_angle.h | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/m/m3d/m_anmmdl.h b/include/m/m3d/m_anmmdl.h index cb8ec945..29cf6e2e 100644 --- a/include/m/m3d/m_anmmdl.h +++ b/include/m/m3d/m_anmmdl.h @@ -60,6 +60,13 @@ public: void setAnmFile(void *data) { mAnmFile = nw4r::g3d::ResFile(data); } + nw4r::g3d::ResFile getAnmFile() { + return mAnmFile; + } + + nw4r::g3d::ResFile getMdlFile() { + return mMdlFile; + } protected: nw4r::g3d::ResFile mMdlFile; diff --git a/include/m/m_angle.h b/include/m/m_angle.h index 1de484bc..bd3e30f3 100644 --- a/include/m/m_angle.h +++ b/include/m/m_angle.h @@ -53,6 +53,11 @@ public: return *this; } + template <typename T> + bool operator==(const T other) { + return mVal == other; + } + public: static s32 abs(const mAng b) { return labs(b); @@ -63,6 +68,12 @@ public: s32 absDiff(const mAng &other) const { return sLib::absDiff(mVal, other.mVal); } + // NOTE: Try not to use this one... + // May need a better home in future. + template <typename T> + static s32 absDiff2(T a, T b) { + return abs(a - b); + } f32 sin() const { return nw4r::math::SinIdx(*this); } |
