0.44.0
|
#include <iaMatrix2D.h>
Public Member Functions | |
void | operator+= (iaMatrix2D &a) |
void | operator-= (iaMatrix2D &a) |
bool | operator== (const iaMatrix2D< T > &a) const |
bool | operator!= (const iaMatrix2D< T > &a) const |
iaVector2< T > | operator* (iaVector2< T > &a) |
iaVector3< T > | operator* (iaVector3< T > &a) |
iaMatrix2D | operator* (iaMatrix2D &m) |
void | operator*= (iaMatrix2D &m) |
T & | operator[] (const int i) |
void | identity () |
T | determinant () |
void | transpose () |
void | translate (const iaVector2< T > &a) |
void | translate (T x, T y) |
void | scale (iaVector2< T > &s) |
void | scale (T x, T y) |
void | rotate (T angle) |
const T * | getData () const |
T * | getData () |
void | setData (T *data) |
template<class T2 > | |
iaMatrix2D< T2 > | convert () |
iaMatrix2D () | |
~iaMatrix2D () | |
template<class T2 > | |
iaMatrix2D< T2 > | convert () |
Public Attributes | |
T | _m [9] |
3x3 Matrix
IGOR_INLINE iaMatrix2D::iaMatrix2D | ( | ) |
initializes the matrix with the id matrix
IGOR_INLINE iaMatrix2D::~iaMatrix2D | ( | ) |
does nothing
converts the vector in to given type of vector
IGOR_INLINE T iaMatrix2D::determinant | ( | ) |
returns the determinant of the 3x3 part of the matrix
IGOR_INLINE T * iaMatrix2D::getData | ( | ) |
returns pointer to the data
IGOR_INLINE const T * iaMatrix2D::getData | ( | ) | const |
returns pointer to the data
IGOR_INLINE void iaMatrix2D::identity | ( | ) |
initializes matrix with id matrix
IGOR_INLINE bool iaMatrix2D::operator!= | ( | const iaMatrix2D< T > & | a | ) | const |
negated comparison of two matrices
a | the second matrix to compare this matrix with |
iaMatrix2D iaux::iaMatrix2D< T >::operator* | ( | iaMatrix2D< T > & | m | ) |
matrix multiplication
iaVector2< T > iaux::iaMatrix2D< T >::operator* | ( | iaVector2< T > & | a | ) |
matrix vector2 multiplication
matrix vector3 multiplication
IGOR_INLINE void iaMatrix2D::operator*= | ( | iaMatrix2D< T > & | m | ) |
matrix multiplication
IGOR_INLINE void iaMatrix2D::operator+= | ( | iaMatrix2D< T > & | a | ) |
addition
IGOR_INLINE void iaMatrix2D::operator-= | ( | iaMatrix2D< T > & | a | ) |
subtraction
IGOR_INLINE bool iaMatrix2D::operator== | ( | const iaMatrix2D< T > & | a | ) | const |
comparison of two matrices
a | the second matrix to compare this matrix with |
IGOR_INLINE T & iaMatrix2D::operator[] | ( | const int | i | ) |
matrix component by index
i | only indexes from 0 to 8 are allowed |
IGOR_INLINE void iaMatrix2D::rotate | ( | T | angle | ) |
rotates the matrix
angle | angle to rotate in radians |
IGOR_INLINE void iaMatrix2D::scale | ( | iaVector2< T > & | s | ) |
scale matrix by vector
s | scale vector |
IGOR_INLINE void iaMatrix2D::scale | ( | T | x, |
T | y | ||
) |
scale matrix by vector
x | x component of vector |
y | y component of vector |
IGOR_INLINE void iaMatrix2D::setData | ( | T * | data | ) |
set data
void iaux::iaMatrix2D< T >::translate | ( | const iaVector2< T > & | a | ) |
translate the matrix by vector dd
a | translation vector |
IGOR_INLINE void iaMatrix2D::translate | ( | T | x, |
T | y | ||
) |
translate the matrix by vector 2d
x | x component |
y | y component |
IGOR_INLINE void iaMatrix2D::transpose | ( | ) |
calculates the inverse of the matrix and overwrites the original value
T iaux::iaMatrix2D< T >::_m[9] |
internal data