#include <matrix.h>
Public Member Functions |
| Matrix () |
| Default constructor makes an identity matrix.
|
| Matrix (value_type m00, value_type m01, value_type m02, value_type m10, value_type m11, value_type m12, value_type m20, value_type m21, value_type m22) |
| Matrix (Vector axis_x, Vector axis_y, Vector offset) |
Vector | get_axis_x () const |
Vector | get_axis_y () const |
Vector | get_offset () const |
Matrix & | set_identity () |
| set_identity member. Set an identity matrix
|
bool | is_identity () const |
Matrix & | set_scale (const value_type &sx, const value_type &sy) |
Matrix & | set_scale (const value_type &sxy) |
Matrix & | set_scale (const Vector &s) |
Matrix & | set_rotate (const Angle &a) |
Matrix & | set_translate (const Vector &t) |
Matrix & | set_translate (value_type x, value_type y) |
Vector | get_transformed (const Vector &v, bool translate=true) const |
void | get_transformed (value_type &out_x, value_type &out_y, const value_type x, const value_type y, bool translate=true) const |
Matrix | operator*= (const Matrix &rhs) |
Matrix | operator*= (const value_type &rhs) |
Matrix | operator+= (const Matrix &rhs) |
Matrix | operator* (const Matrix &rhs) const |
Matrix | operator* (const value_type &rhs) const |
Matrix | operator+ (const Matrix &rhs) const |
bool | is_invertible () const |
Matrix & | invert () |
String | get_string (int spaces=0, String before=String(), String after=String()) const |
Detailed Description
Member Typedef Documentation
Constructor & Destructor Documentation
Default constructor makes an identity matrix.
Member Function Documentation
Vector synfig::Matrix::get_axis_x |
( |
| ) |
const |
|
inline |
Vector synfig::Matrix::get_axis_y |
( |
| ) |
const |
|
inline |
Vector synfig::Matrix::get_offset |
( |
| ) |
const |
|
inline |
Matrix & Matrix::set_identity |
( |
| ) |
|
set_identity member. Set an identity matrix
bool Matrix::is_identity |
( |
| ) |
const |
set_scale member fucntion. Sets a scale matrix
- Parameters
-
- Returns
- A matrix reference filled with the sxy values
set_scale member fucntion. Sets a scale matrix
- Parameters
-
s | Vector that defines the scale |
- Returns
- A matrix reference filled with the proper scale parameters
set_rotate member function. Sets a rotate matrix
- Parameters
-
a | Rotation angle counter clockwise |
- Returns
- A matrix reference filled with the proper rotation parameters
Referenced by synfig::Bone::get_tip().
translate member function. Sets a translate matrix
- Parameters
-
t | Vector that defines the translation |
- Returns
- A matrix reference filled with the proper translation parameters
translate member function. Sets a translate matrix
- Parameters
-
x | Scalar that defines the x component of the translation |
y | Scalar that defines the y component of the translation |
- Returns
- A matrix reference filled with the proper translation parameters
Vector Matrix::get_transformed |
( |
const Vector & |
v, |
|
|
bool |
translate = true |
|
) |
| const |
operator*=. Multiplication and assignment of one matrix by another
- Parameters
-
rhs | the right hand side of the multiplication operation |
- Returns
- the modified resulting matrix
References m00, m01, m02, m10, m11, m12, m20, m21, and m22.
operator*=. Multiplication and assignment of one matrix by a scalar
- Parameters
-
rhs | the number to multiply by |
- Returns
- the modifed resulting matrix
operator+=. Sum and assignment of two matrixes
- Parameters
-
- Returns
- modified matrix with the summed matrix
References m00, m01, m02, m10, m11, m12, m20, m21, and m22.
operator*. Multiplication of one matrix by another
- Parameters
-
rhs | the right hand side of the multiplication operation |
- Returns
- the resulting matrix
operator*. Multiplication of one matrix by a number
- Parameters
-
rhs | the number to multiply by |
- Returns
- the resulting matrix
operator+. Sum two matrixes
- Parameters
-
- Returns
- the resulting matrix
bool Matrix::is_invertible |
( |
| ) |
const |
Member Data Documentation
The documentation for this class was generated from the following files: