diff options
author | aap <aap@papnet.eu> | 2020-07-01 18:03:52 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-07-01 18:03:59 +0200 |
commit | 575f35f2c48354c6e5df5b936d35658f6e5bc873 (patch) | |
tree | f2c6cd046fd54978596ac86286fb6ab36e95123d /src/math | |
parent | copypaste bug (diff) | |
download | re3-575f35f2c48354c6e5df5b936d35658f6e5bc873.tar re3-575f35f2c48354c6e5df5b936d35658f6e5bc873.tar.gz re3-575f35f2c48354c6e5df5b936d35658f6e5bc873.tar.bz2 re3-575f35f2c48354c6e5df5b936d35658f6e5bc873.tar.lz re3-575f35f2c48354c6e5df5b936d35658f6e5bc873.tar.xz re3-575f35f2c48354c6e5df5b936d35658f6e5bc873.tar.zst re3-575f35f2c48354c6e5df5b936d35658f6e5bc873.zip |
Diffstat (limited to 'src/math')
-rw-r--r-- | src/math/Matrix.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/math/Matrix.h b/src/math/Matrix.h index d8920a65..c849a5c4 100644 --- a/src/math/Matrix.h +++ b/src/math/Matrix.h @@ -259,6 +259,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); + } }; |