diff options
author | Ton Roosendaal <ton@blender.org> | 2005-08-27 16:45:29 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-08-27 16:45:29 +0400 |
commit | a7f2ebf06c857482a20f1e73f17f7b38a3013756 (patch) | |
tree | 40b8dc513759ab3549ac16609e52757cd2c3ba8e /intern/moto/include/MT_Matrix3x3.h | |
parent | 665a6b2d9521bb4fb9fc57ee0c94f6a580d55c91 (diff) |
Second commit for Brecht's IK work.
(Moto needs 'make install' before you can do IK lib btw)
Diffstat (limited to 'intern/moto/include/MT_Matrix3x3.h')
-rwxr-xr-x | intern/moto/include/MT_Matrix3x3.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/intern/moto/include/MT_Matrix3x3.h b/intern/moto/include/MT_Matrix3x3.h index 712d48b8a64..fb899a7da96 100755 --- a/intern/moto/include/MT_Matrix3x3.h +++ b/intern/moto/include/MT_Matrix3x3.h @@ -79,6 +79,15 @@ public: MT_Vector3& operator[](int i) { return m_el[i]; } const MT_Vector3& operator[](int i) const { return m_el[i]; } + + MT_Vector3 getColumn(int i) const { + return MT_Vector3(m_el[0][i], m_el[1][i], m_el[2][i]); + } + void setColumn(int i, const MT_Vector3& v) { + m_el[0][i] = v[0]; + m_el[1][i] = v[1]; + m_el[2][i] = v[2]; + } void setValue(const float *m) { m_el[0][0] = *m++; m_el[1][0] = *m++; m_el[2][0] = *m++; m++; |