#include <Cairo.h>
List of all members.
Public Member Functions |
| Matrix () |
| Matrix (double xx, double yx, double xy, double yy, double x0, double y0) |
| Matrix (const cinder::MatrixAffine2f &m) |
cairo_matrix_t & | getCairoMatrix () |
const cairo_matrix_t & | getCairoMatrix () const |
void | init (double xx, double yx, double xy, double yy, double x0, double y0) |
void | initIdentity () |
void | initTranslate (double tx, double ty) |
void | initScale (double sx, double sy) |
void | initRotate (double radians) |
void | translate (double tx, double ty) |
void | scale (double sx, double sy) |
void | rotate (double radians) |
int32_t | invert () |
Vec2f | transformPoint (const Vec2f &v) const |
| Transforms the point v by the matrix.
|
Vec2f | transformDistance (const Vec2f &v) const |
| Transforms the distance vector v by the matrix. This is similar to cairo_matrix_transform_point() except that the translation components of the transformation are ignored.
|
const Matrix & | operator*= (const Matrix &rhs) |
Public Attributes |
double | xx |
double | yx |
double | xy |
double | yy |
double | x0 |
double | y0 |
Friends |
std::ostream & | operator<< (std::ostream &lhs, const Matrix &rhs) |
Constructor & Destructor Documentation
Member Function Documentation
Transforms the point v by the matrix.
Transforms the distance vector v by the matrix. This is similar to cairo_matrix_transform_point() except that the translation components of the transformation are ignored.
const Matrix & cinder::cairo::Matrix::operator*= |
( |
const Matrix & |
rhs | ) |
|
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
lhs, |
|
|
const Matrix & |
rhs |
|
) |
| [friend] |
Member Data Documentation
The documentation for this class was generated from the following files: