23 |
#include <sstream> |
#include <sstream> |
24 |
|
|
25 |
//! Applies the TransformMatrix to the vector \a v. |
//! Applies the TransformMatrix to the vector \a v. |
26 |
TinyVector<3>& TransformMatrix::operator()(TinyVector<3>& v) |
TinyVector<3>& TransformMatrix::operator()(TinyVector<3>& v) const |
27 |
{ |
{ |
28 |
v = __matrix*v; |
v = __matrix*v; |
29 |
v += __translate; |
v += __translate; |
31 |
} |
} |
32 |
|
|
33 |
//! Applies the inverse TransformMatrix to the vector \a v. |
//! Applies the inverse TransformMatrix to the vector \a v. |
34 |
TinyVector<3>& TransformMatrix::inverse(TinyVector<3>& v) |
TinyVector<3>& TransformMatrix::inverse(TinyVector<3>& v) const |
35 |
{ |
{ |
36 |
// As 'matrix' is composed of transformMatrixs, and |
// As 'matrix' is composed of transformMatrixs, and |
37 |
// as transformMatrixs are othogonal matrices |
// as transformMatrixs are othogonal matrices |