diff options
| author | lepelog <25211966+lepelog@users.noreply.github.com> | 2026-06-24 01:13:28 +0200 |
|---|---|---|
| committer | lepelog <25211966+lepelog@users.noreply.github.com> | 2026-06-28 13:10:42 +0200 |
| commit | 2f3d3dc4f6cd68c325838e2ae01be707d0e3463a (patch) | |
| tree | 7dbeb612afa84ec173d01de249c3145d06d93550 /include/m | |
| parent | 261b6b9524602ca6f686fa557cf96d93dc977a88 (diff) | |
more progress
Diffstat (limited to 'include/m')
| -rw-r--r-- | include/m/m_vec.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/m/m_vec.h b/include/m/m_vec.h index bd4cc4b0..bbde3920 100644 --- a/include/m/m_vec.h +++ b/include/m/m_vec.h @@ -272,10 +272,15 @@ public: return cM::atan2s(-y, absXZ()); } - s16 atan2sY_XZ() const { + // TODO: make sure this isn't bad + s32 atan2sY_XZ() const { return cM::atan2s(y, absXZ()); } + s32 atan2sXZ_Y() const { + return -atan2sY_XZ(); + } + f32 angle(const mVec3_c &other) const { return EGG::Vector3f::angle(other); } |
