#include <wx/affinematrix2dbase.h>
A 2x3 matrix representing an affine 2D transformation.
This is an abstract base class implemented by wxAffineMatrix2D only so far, but in the future we also plan to derive wxGraphicsMatrix from it.
- Since
- 2.9.2
wxAffineMatrix2DBase::wxAffineMatrix2DBase |
( |
| ) |
|
Default constructor.
The matrix elements are initialize to the identity matrix.
virtual wxAffineMatrix2DBase::~wxAffineMatrix2DBase |
( |
| ) |
|
|
virtual |
Concatenate this matrix with another one.
The parameter matrix is the multiplicand.
- Parameters
-
Implemented in wxAffineMatrix2D.
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. |
Implemented in wxAffineMatrix2D.
virtual bool wxAffineMatrix2DBase::Invert |
( |
| ) |
|
|
pure virtual |
Invert this matrix.
If the matrix is not invertible, i.e. if its determinant is 0, returns false and doesn't modify it.
Implemented in wxAffineMatrix2D.
Check that this matrix is identical with t.
- Parameters
-
t | The matrix compared with this. |
virtual bool wxAffineMatrix2DBase::IsIdentity |
( |
| ) |
const |
|
pure virtual |
void wxAffineMatrix2DBase::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. |
Check that this matrix differs from t.
- Parameters
-
t | The matrix compared with this. |
Check that this matrix is identical with t.
- Parameters
-
t | The matrix compared with this. |
virtual void wxAffineMatrix2DBase::Rotate |
( |
wxDouble |
cRadians | ) |
|
|
pure virtual |
Add clockwise rotation to this matrix.
- Parameters
-
cRadians | Rotation angle in radians, clockwise. |
Implemented in wxAffineMatrix2D.
Add scaling to this matrix.
- Parameters
-
xScale | Scaling in x direction. |
yScale | Scaling in y direction. |
Implemented in wxAffineMatrix2D.
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. |
Implemented in wxAffineMatrix2D.
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.
void wxAffineMatrix2DBase::TransformDistance |
( |
wxDouble * |
dx, |
|
|
wxDouble * |
dy |
|
) |
| const |
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. |
Implemented in wxAffineMatrix2D.