summaryrefslogtreecommitdiff
path: root/include/m
diff options
context:
space:
mode:
authorlepelog <25211966+lepelog@users.noreply.github.com>2025-12-13 01:23:37 +0100
committerlepelog <25211966+lepelog@users.noreply.github.com>2026-02-01 18:14:38 +0100
commitb017949c4b37acbfea90fdd5641dbdceaee688a7 (patch)
tree1648b752fd8a55070ac3555ea9615e09dd95a7b1 /include/m
parent62fc066b605680af84cc921aba070b62e7df8ff7 (diff)
d_t_mass_obj 99%
Diffstat (limited to 'include/m')
-rw-r--r--include/m/m_mtx.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/m/m_mtx.h b/include/m/m_mtx.h
index ac131169..3cdb56bb 100644
--- a/include/m/m_mtx.h
+++ b/include/m/m_mtx.h
@@ -87,6 +87,11 @@ public:
void inverse() {
MTXInverse(*this, *this);
}
+ mMtx_c copyInverse() {
+ mMtx_c ret = *this;
+ ret.inverse();
+ return ret;
+ }
void multVecZero(nw4r::math::VEC3 &out) const; ///< Converts the matrix to a vector.
void zero(); ///< Zeroes out the matrix.
@@ -142,6 +147,11 @@ public:
MTXMultVec(*this, ret, ret);
return ret;
}
+ mVec3_c multVec2(const mVec3_c &v) const {
+ mVec3_c ret;
+ MTXMultVec(*this, v, ret);
+ return ret;
+ }
void multVecSR(const mVec3_c &in, mVec3_c &out) const {
MTXMultVecSR(*this, in, out);