iPlug2 - C++ Audio Plug-in Framework
|
Used to store transformation matrices. More...
#include <IGraphicsStructs.h>
Public Member Functions | |
IMatrix (double xx, double yx, double xy, double yy, double tx, double ty) | |
Create an IMatrix, specifying the values. More... | |
IMatrix () | |
Create an identity matrix. More... | |
IMatrix & | Translate (float x, float y) |
Set the matrix for a translation transform. More... | |
IMatrix & | Scale (float x, float y) |
Set the matrix for a scale transform. More... | |
IMatrix & | Rotate (float a) |
Set the matrix for a rotation transform. More... | |
IMatrix & | Skew (float xa, float ya) |
Set the matrix for a skew transform. More... | |
void | TransformPoint (double &x, double &y, double x0, double y0) const |
Transforms the point x, y. More... | |
void | TransformPoint (double &x, double &y) const |
Transforms the point x, y with the matrix. More... | |
IMatrix & | Transform (const IRECT &before, const IRECT &after) |
IMatrix & | Transform (const IMatrix &m) |
Transform this matrix with another. More... | |
IMatrix & | Invert () |
Changes the matrix to be the inverse of its original value. More... | |
Public Attributes | |
double | mXX |
double | mYX |
double | mXY |
double | mYY |
double | mTX |
double | mTY |
Used to store transformation matrices.
Definition at line 1998 of file IGraphicsStructs.h.
|
inline |
Create an IMatrix, specifying the values.
xx | xx component of the affine transformation |
yx | yx component of the affine transformation |
xy | xy component of the affine transformation |
yy | yy component of the affine transformation |
tx | X translation component of the affine transformation |
ty | Y translation component of the affine transformation |
Definition at line 2007 of file IGraphicsStructs.h.
|
inline |
Create an identity matrix.
Definition at line 2012 of file IGraphicsStructs.h.
Referenced by Rotate(), Scale(), Skew(), Transform(), and Translate().
|
inline |
Changes the matrix to be the inverse of its original value.
Definition at line 2106 of file IGraphicsStructs.h.
|
inline |
Set the matrix for a rotation transform.
a | The angle of rotation in degrees |
Definition at line 2036 of file IGraphicsStructs.h.
References IMatrix(), and Transform().
Referenced by IGraphics::CalculateTextRotation(), and IGraphics::PathTransformRotate().
|
inline |
Set the matrix for a scale transform.
x | The scale for x |
y | The scale for y |
Definition at line 2028 of file IGraphicsStructs.h.
References IMatrix(), and Transform().
Referenced by IGraphics::PathTransformScale().
|
inline |
Set the matrix for a skew transform.
xa | The angle to skew x coordinates in degrees |
ya | The angle to skew y coordinates in degrees |
Definition at line 2049 of file IGraphicsStructs.h.
References IMatrix(), and Transform().
Referenced by IGraphics::PathTransformSkew().
Transform this matrix with another.
m | The matrix with which to transform this one |
Definition at line 2090 of file IGraphicsStructs.h.
before |
after |
Definition at line 2077 of file IGraphicsStructs.h.
References IRECT::H(), IMatrix(), and IRECT::W().
Referenced by IGraphics::PathTransformMatrix(), Rotate(), Scale(), Skew(), and Translate().
|
inline |
Transforms the point x, y with the matrix.
x | The x coordinate to transform |
y | The y coordinate to transform |
Definition at line 2068 of file IGraphicsStructs.h.
References TransformPoint().
|
inline |
Transforms the point x, y.
x | The x coordinate to transform |
y | The y coordinate to transform |
x0 |
y0 |
Definition at line 2059 of file IGraphicsStructs.h.
Referenced by IGraphics::CalculateTextRotation(), and TransformPoint().
|
inline |
Set the matrix for a translation transform.
x | The translation for x values |
y | The translation for y values |
Definition at line 2019 of file IGraphicsStructs.h.
References IMatrix(), and Transform().
Referenced by IGraphics::PathTransformTranslate().
double IMatrix::mTX |
Definition at line 2122 of file IGraphicsStructs.h.
double IMatrix::mTY |
Definition at line 2122 of file IGraphicsStructs.h.
double IMatrix::mXX |
Definition at line 2122 of file IGraphicsStructs.h.
double IMatrix::mXY |
Definition at line 2122 of file IGraphicsStructs.h.
double IMatrix::mYX |
Definition at line 2122 of file IGraphicsStructs.h.
double IMatrix::mYY |
Definition at line 2122 of file IGraphicsStructs.h.