summaryrefslogtreecommitdiff
path: root/include/m/m_mtx.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/m/m_mtx.h')
-rw-r--r--include/m/m_mtx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/m/m_mtx.h b/include/m/m_mtx.h
index ac131169..fb18660f 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.