summaryrefslogtreecommitdiffstats
path: root/src/math/Matrix.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-13 10:38:05 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-13 10:38:05 +0200
commit81ea6f0258895e9087e0cb89cbd8bd30346974e2 (patch)
tree5cd55aa0bd44c45ff21d58692ff838cc7187a2e4 /src/math/Matrix.h
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-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/Matrix.h')
-rw-r--r--src/math/Matrix.h3
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; }