summaryrefslogtreecommitdiffstats
path: root/src/math/Matrix.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-01 18:05:24 +0200
committeraap <aap@papnet.eu>2020-06-01 18:05:24 +0200
commit25273485d93dcb85e84f184d5e3e6d35a0944164 (patch)
tree1ebede77df503742ec1b7e441d64281cbf494523 /src/math/Matrix.h
parentgravity (diff)
parentMerge pull request #608 from Nick007J/miami (diff)
downloadre3-25273485d93dcb85e84f184d5e3e6d35a0944164.tar
re3-25273485d93dcb85e84f184d5e3e6d35a0944164.tar.gz
re3-25273485d93dcb85e84f184d5e3e6d35a0944164.tar.bz2
re3-25273485d93dcb85e84f184d5e3e6d35a0944164.tar.lz
re3-25273485d93dcb85e84f184d5e3e6d35a0944164.tar.xz
re3-25273485d93dcb85e84f184d5e3e6d35a0944164.tar.zst
re3-25273485d93dcb85e84f184d5e3e6d35a0944164.zip
Diffstat (limited to 'src/math/Matrix.h')
-rw-r--r--src/math/Matrix.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/math/Matrix.h b/src/math/Matrix.h
index 90f66d7a..46789c94 100644
--- a/src/math/Matrix.h
+++ b/src/math/Matrix.h
@@ -261,6 +261,14 @@ public:
m_matrix.at.y = 0.0f;
m_matrix.at.z = 1.0f;
}
+ void SetTranslateOnly(float x, float y, float z) {
+ m_matrix.pos.x = x;
+ m_matrix.pos.y = y;
+ m_matrix.pos.z = z;
+ }
+ void SetTranslateOnly(const CVector& pos) {
+ SetTranslateOnly(pos.x, pos.y, pos.z);
+ }
};