summaryrefslogtreecommitdiffstats
path: root/src/math
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-07-01 18:03:52 +0200
committeraap <aap@papnet.eu>2020-07-01 18:03:59 +0200
commit575f35f2c48354c6e5df5b936d35658f6e5bc873 (patch)
treef2c6cd046fd54978596ac86286fb6ab36e95123d /src/math
parentcopypaste bug (diff)
downloadre3-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.h8
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);
+ }
};