diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-13 10:38:05 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-13 10:38:05 +0200 |
commit | 81ea6f0258895e9087e0cb89cbd8bd30346974e2 (patch) | |
tree | 5cd55aa0bd44c45ff21d58692ff838cc7187a2e4 /src/math | |
parent | Merge remote-tracking branch 'upstream/miami' into miami (diff) | |
download | re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.tar re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.tar.gz re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.tar.bz2 re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.tar.lz re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.tar.xz re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.tar.zst re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.zip |
Diffstat (limited to 'src/math')
-rw-r--r-- | src/math/Matrix.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/math/Matrix.h b/src/math/Matrix.h index 35972e7f..f2d228a4 100644 --- a/src/math/Matrix.h +++ b/src/math/Matrix.h @@ -78,7 +78,8 @@ public: return *this; } - CVector &GetPosition(void){ return *(CVector*)&m_matrix.pos; } + const CVector &GetPosition(void) const { return *(CVector*)&m_matrix.pos; } + CVector& GetPosition(void) { return *(CVector*)&m_matrix.pos; } CVector &GetRight(void) { return *(CVector*)&m_matrix.right; } CVector &GetForward(void) { return *(CVector*)&m_matrix.up; } CVector &GetUp(void) { return *(CVector*)&m_matrix.at; } |