slight format changes to util/Matrix
git-svn-id: svn://anubis/fart/trunk@18 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
6283577b42
commit
0c8597f31b
@ -24,6 +24,7 @@ Matrix Matrix::identity()
|
||||
return res;
|
||||
}
|
||||
|
||||
/* Formulas from http://www.cvl.iis.u-tokyo.ac.jp/~miyazaki/tech/teche23.html */
|
||||
double Matrix::determinant()
|
||||
{
|
||||
return m_matrix[0][0] * m_matrix[1][1] * m_matrix[2][2] * m_matrix[3][3]
|
||||
@ -57,6 +58,7 @@ double Matrix::determinant()
|
||||
- m_matrix[0][3] * m_matrix[1][2] * m_matrix[2][0] * m_matrix[3][1];
|
||||
}
|
||||
|
||||
/* Formulas from http://www.cvl.iis.u-tokyo.ac.jp/~miyazaki/tech/teche23.html */
|
||||
void Matrix::calculateInverse()
|
||||
{
|
||||
if (m_inverse_calculated)
|
||||
|
Loading…
x
Reference in New Issue
Block a user