#include <wx/affinematrix2d.h>
Detailed Description
A 3x2 matrix representing an affine 2D transformation.
- Since:
- 2.9.2
List of all members.
Constructor & Destructor Documentation
wxAffineMatrix2D::wxAffineMatrix2D |
( |
| ) |
|
Default constructor.
The matrix elements are initialize to the identity matrix.
Member Function Documentation
void wxAffineMatrix2D::Concat |
( |
const wxAffineMatrix2DBase & |
t | ) |
|
Concatenate this matrix with another one.
The parameter matrix is the multiplicand.
- Parameters:
-
Get the component values of the matrix.
- Parameters:
-
mat2D | The rotational components of the matrix (upper 2 x 2), must be non-NULL. |
tr | The translational components of the matrix, may be NULL. |
bool wxAffineMatrix2D::Invert |
( |
| ) |
|
Invert this matrix.
If the matrix is not invertible, i.e. if its determinant is 0, returns false and doesn't modify it.
void wxAffineMatrix2D::IsEqual |
( |
const wxAffineMatrix2DBase & |
t | ) |
|
Check that this matrix is identical with .
- Parameters:
-
t | The matrix compared with this. |
bool wxAffineMatrix2D::IsIdentity |
( |
| ) |
const |
Check if this is the identity matrix.
void wxAffineMatrix2D::Mirror |
( |
int |
direction = wxHORIZONTAL | ) |
|
Add mirroring to this matrix.
- Parameters:
-
direction | The direction(s) used for mirroring. One of wxHORIZONTAL, wxVERTICAL or their combination wxBOTH. |
bool wxAffineMatrix2D::operator!= |
( |
const wxAffineMatrix2DBase & |
t | ) |
const |
Check that this matrix differs from .
- Parameters:
-
t | The matrix compared with this. |
bool wxAffineMatrix2D::operator== |
( |
const wxAffineMatrix2DBase & |
t | ) |
const |
Check that this matrix is identical with .
- Parameters:
-
t | The matrix compared with this. |
void wxAffineMatrix2D::Rotate |
( |
wxDouble |
ccRadians | ) |
|
Add counter clockwise rotation to this matrix.
- Parameters:
-
ccRadians | Rotation angle in radians. |
Add scaling to this matrix.
- Parameters:
-
xScale | Scaling in x direction. |
yScale | Scaling in y direction. |
Set all elements of this matrix.
- Parameters:
-
mat2D | The rotational components of the matrix (upper 2 x 2). |
tr | The translational components of the matrix. |
Applies the linear part of this matrix, i.e.
without translation.
- Parameters:
-
p | The source receiving the transformations. |
- Returns:
- The source with the transformations applied.
Applies this matrix to the point.
- Parameters:
-
p | The point receiving the transformations. |
- Returns:
- The point with the transformations applied.
Add the translation to this matrix.
- Parameters:
-
dx | The translation in x direction. |
dy | The translation in y direction. |