#include <matrix.h>
Public Types | |
typedef Real | value_type |
Public Member Functions | |
Matrix () | |
Deafult constructor makes a identity matrix. | |
Matrix (const Angle &a) | |
Constructor from Angle create a rotate matrix. | |
Matrix & | set_identity () |
set_identity member. Set an identity matrix | |
Matrix & | set_scale (const value_type &sx, const value_type &sy) |
Matrix & | set_rotate (const Angle &a) |
Matrix & | set_translate (const Vector &t) |
Vector | get_transformed (const Vector &v) |
Matrix | operator* (const Matrix &rhs) |
Matrix | operator*= (const value_type &rhs) |
Matrix | operator+= (const Matrix &rhs) |
Matrix | operator* (const value_type &rhs) |
Matrix | operator+ (const Matrix &rhs) |
typedef Real synfig::Matrix::value_type |
synfig::Matrix::Matrix | ( | ) | [inline] |
synfig::Matrix::Matrix | ( | const Angle & | a | ) | [inline] |
Constructor from Angle create a rotate matrix.
Matrix& synfig::Matrix::set_identity | ( | ) | [inline] |
set_identity member. Set an identity matrix
Matrix& synfig::Matrix::set_scale | ( | const value_type & | sx, | |
const value_type & | sy | |||
) | [inline] |
set_scale member fucntion. Sets a scale matrix
sx | Scale by X axis | |
sy | Scale by Y axis |
set_rotate member function. Sets a rotate matrix
a | Rotation angle counterclock wise |
traslate member function. Sets a translate matrix
t | Vector that defines the translation |
Matrix synfig::Matrix::operator*= | ( | const value_type & | rhs | ) | [inline] |
operator *=. Multiplication and assign of one matrix by a number
rhs | the number to multiply by |
Matrix synfig::Matrix::operator* | ( | const value_type & | rhs | ) | [inline] |
operator *. Multiplication of one matrix by a number
rhs | the number to multiply by |
References Matrix().
operator +=. Sum and assign of two matrixes
rhs | the matrix to sum |
References Matrix().