diff options
| author | robojumper <robojumper@gmail.com> | 2026-05-23 22:58:30 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2026-05-25 00:55:20 +0200 |
| commit | 916f07e2867eb7b4e5276dea5692f8d1ab67f9ec (patch) | |
| tree | bab6ba628a292f215b03d54e3aa3f7d06b86e5cb /src/toBeSorted | |
| parent | 483ac7b934e4e3443366640320ae9b1ade65fe90 (diff) | |
dAcArrow_c 99%
Diffstat (limited to 'src/toBeSorted')
| -rw-r--r-- | src/toBeSorted/d_sword_swing_effect_mgr.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/toBeSorted/d_sword_swing_effect_mgr.cpp b/src/toBeSorted/d_sword_swing_effect_mgr.cpp index 1d0339c3..b1558788 100644 --- a/src/toBeSorted/d_sword_swing_effect_mgr.cpp +++ b/src/toBeSorted/d_sword_swing_effect_mgr.cpp @@ -3,16 +3,7 @@ #include "c/c_math.h" #include "egg/math/eggMatrix.h" #include "m/m_vec.h" - -// TODO: can't use EGG::Vector3f::cross because the Vector3f -> mVec3_c conversion -// forces additional stack stores. An open-coded cross function works too in this -// file but maybe pattern comes up in more files and then we can move it to d_vec? -inline void cross(mVec3_c &result, const mVec3_c &left, const mVec3_c &right) { - result.set( - (left.y * right.z) - (left.z * right.y), (left.z * right.x) - (left.x * right.z), - (left.x * right.y) - (left.y * right.x) - ); -} +#include "d/d_vec.h" static bool fn_8006A8D0(const mVec2_c &v1, const mVec2_c &v2, const mVec2_c &v3, const mVec2_c &v4, mVec2_c &result) { mVec2_c t1 = v2 - v1; @@ -56,7 +47,7 @@ void dSwordSwingEffectProcMgr_c::createSwingEntries(const mVec3_c &v1, const mVe mVec3_c diff = v1 - v2; mVec3_c cross_; - cross(cross_, lastDiff, diff); + vecCross(cross_, lastDiff, diff); f32 diffMag = diff.mag(); @@ -150,7 +141,7 @@ void dSwordSwingEffectProcMgr_c::createSwingEntries(const mVec3_c &v1, const mVe diff2.normalize(); diff1.normalize(); - cross(cross_, diff1, diff2); + vecCross(cross_, diff1, diff2); cross_.normalize(); // Same code as in dowsing_target... |
