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