165 friend std::ostream& operator<<<T>( std::ostream& aStream,
const MATRIX3x3<T>& aMatrix );
195 for(
int j = 0; j < 3; j++ )
197 for(
int i = 0; i < 3; i++ )
242 for(
int j = 0; j < 3; j++ )
244 for(
int i = 0; i < 3; i++ )
277 T cosValue = cos( aAngle );
278 T sinValue = sin( aAngle );
308 for(
int i = 0; i < 3; i++ )
310 for(
int j = 0; j < 3; j++ )
340 + aMatrix.
m_data[0][2] * aVector.
z;
342 + aMatrix.
m_data[1][2] * aVector.
z;
344 + aMatrix.
m_data[2][2] * aVector.
z;
359template <
class T,
class S>
364 for(
int i = 0; i < 3; i++ )
366 for(
int j = 0; j < 3; j++ )
376template <
class T,
class S>
379 return aMatrix * aScalar;
409 for(
int i = 0; i < 3; i++ )
411 for(
int j = 0; j < 3; j++ )
424 for(
int i = 0; i < 3; i++ )
428 for(
int j = 0; j < 3; j++ )
430 aStream << aMatrix.
m_data[i][j];
MATRIX3x3 describes a general 3x3 matrix.
VECTOR2< T > GetTranslation() const
Get the translation components of the matrix.
MATRIX3x3 Transpose() const
Get the transpose of the matrix.
void SetIdentity()
Set the matrix to the identity matrix.
bool operator==(const MATRIX3x3< T > &aOtherMatrix) const
Not equality operator.
void SetRotation(T aAngle)
Set the rotation components of the matrix.
void SetScale(VECTOR2< T > aScale)
Set the scale components of the matrix.
MATRIX3x3(T a00, T a01, T a02, T a10, T a11, T a12, T a20, T a21, T a22)
Initialize with given matrix members.
VECTOR2< T > GetScale() const
Get the scale components of the matrix.
MATRIX3x3()
Initialize all matrix members to zero.
void SetTranslation(VECTOR2< T > aTranslation)
Set the translation components of the matrix.
bool operator!=(const MATRIX3x3< T > &aOtherMatrix) const
T Determinant() const
Compute the determinant of the matrix.
MATRIX3x3 Inverse() const
Determine the inverse of the matrix.
MATRIX3x3(VECTOR3< T > a1, VECTOR3< T > a2, VECTOR3< T > a3)
Initialize with 3 vectors.
Define a general 2D-vector/point.
Define a general 3D-vector.
MATRIX3x3< double > MATRIX3x3D
std::ostream & operator<<(std::ostream &aStream, const MATRIX3x3< T > &aMatrix)
MATRIX3x3< T > const operator*(MATRIX3x3< T > const &aA, MATRIX3x3< T > const &aB)
Matrix multiplication.
wxString result
Test unit parsing edge cases and error handling.