JugiMap Framework
|
Matrix representation of the affine transformation. More...
#include <jmCommon.h>
Public Member Functions | |
AffineMat3 () | |
Constructs an identity matrix. More... | |
AffineMat3 (const Vec2< T > &_i, const Vec2< T > &_j, const Vec2< T > &_t) | |
Constructs a matrix from the given row vectors **_i**, **_j** and **_t**. More... | |
AffineMat3 (T ix, T iy, T jx, T jy, T tx, T ty) | |
Constructs a matrix from the given row vector components ix, iy, jx, jy, tx and ty. More... | |
AffineMat3< T > | Invert () const |
Returns a matrix formed by inverting this matrix. More... | |
Vec2< T > | operator* (const Vec2< T > &v) const |
Returns a matrix formed by multiplying this matrix with the given vector v. More... | |
AffineMat3< T > | operator* (const AffineMat3< T > &m) const |
Returns a matrix formed by multiplying this matrix with the given matrix m. More... | |
Vec2< T > | Transform (const Vec2< T > &v) const |
Returns a vector formed by multiplying the given vector v with this matrix. More... | |
Vec2< T > | Transform (T x, T y) const |
Returns a vector formed by multiplying the given coordinate x,y with this matrix. More... | |
AffineMat3< T > | Transform (float ix, float iy, float jx, float jy, float tx, float ty) const |
Returns a matrix formed by multiplying this matrix with the given matrix components ix, iy, jx, jy, tx and ty. More... | |
AffineMat3< T > | Translate (T tx, T ty) const |
Returns a matrix formed by translating this matrix by the given vector coordinates tx and ty. More... | |
AffineMat3< T > | Translate (const Vec2< T > &tv) const |
Returns a matrix formed by translating this matrix by the given vector tv. More... | |
AffineMat3< T > | Rotate (double rz) const |
Returns a matrix formed by rotating this matrix by the given angle rz; the angle is in radians. More... | |
AffineMat3< T > | Scale (T sx, T sy) const |
Returns a matrix formed by scaling this matrix by the given vector components sx and sy. More... | |
AffineMat3< T > | Scale (const Vec2< T > &sv) const |
Returns a matrix formed by scaling this matrix by the given vector sv. More... | |
Static Public Member Functions | |
static AffineMat3< T > | Translation (T tx, T ty) |
Creates a matrix representing a translation by the given vector coordinates tx and ty. More... | |
static AffineMat3< T > | Translation (const Vec2< T > &tv) |
Creates a matrix representing a translation by the given vector tv. More... | |
static AffineMat3< T > | Rotation (double rz) |
Creates a matrix representing a rotation by the given angle rz; the angle is in radians. More... | |
static AffineMat3< T > | Scaling (T sx, T sy) |
Creates a matrix representing a scaling by the given vector components sx and sy. More... | |
static AffineMat3< T > | Scaling (const Vec2< T > &sv) |
Creates a matrix representing a scaling by the given vector sv. More... | |
static AffineMat3< T > | Ortho (T left, T right, T bottom, T top) |
Creates a matrix representing an orthographic projection. More... | |
Public Attributes | |
Vec2< T > | i |
The first row of the matrix. More... | |
Vec2< T > | j |
The second row of the matrix. More... | |
Vec2< T > | t |
The third row of the matrix. More... | |
Matrix representation of the affine transformation.
|
inline |
Constructs an identity matrix.
Constructs a matrix from the given row vectors **_i**, **_j** and **_t**.
Constructs a matrix from the given row vector components ix, iy, jx, jy, tx and ty.
|
inline |
Returns a matrix formed by inverting this matrix.
Returns a matrix formed by multiplying this matrix with the given vector v.
|
inline |
Returns a matrix formed by multiplying this matrix with the given matrix m.
Returns a vector formed by multiplying the given vector v with this matrix.
Returns a vector formed by multiplying the given coordinate x,y with this matrix.
|
inline |
Returns a matrix formed by multiplying this matrix with the given matrix components ix, iy, jx, jy, tx and ty.
|
inline |
Returns a matrix formed by translating this matrix by the given vector coordinates tx and ty.
|
inline |
Returns a matrix formed by translating this matrix by the given vector tv.
|
inline |
Returns a matrix formed by rotating this matrix by the given angle rz; the angle is in radians.
|
inline |
Returns a matrix formed by scaling this matrix by the given vector components sx and sy.
|
inline |
Returns a matrix formed by scaling this matrix by the given vector sv.
|
inlinestatic |
Creates a matrix representing a translation by the given vector coordinates tx and ty.
|
inlinestatic |
Creates a matrix representing a translation by the given vector tv.
|
inlinestatic |
Creates a matrix representing a rotation by the given angle rz; the angle is in radians.
|
inlinestatic |
Creates a matrix representing a scaling by the given vector components sx and sy.
|
inlinestatic |
Creates a matrix representing a scaling by the given vector sv.
Creates a matrix representing an orthographic projection.