Public Member Functions | Public Attributes | Friends
cinder::cairo::Matrix Class Reference

#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_tgetCairoMatrix ()
const cairo_matrix_tgetCairoMatrix () 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 Matrixoperator*= (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

cinder::cairo::Matrix::Matrix ( double  xx,
double  yx,
double  xy,
double  yy,
double  x0,
double  y0 
)

Member Function Documentation

void cinder::cairo::Matrix::init ( double  xx,
double  yx,
double  xy,
double  yy,
double  x0,
double  y0 
)
void cinder::cairo::Matrix::initTranslate ( double  tx,
double  ty 
)
void cinder::cairo::Matrix::initScale ( double  sx,
double  sy 
)
void cinder::cairo::Matrix::initRotate ( double  radians)
void cinder::cairo::Matrix::translate ( double  tx,
double  ty 
)
void cinder::cairo::Matrix::scale ( double  sx,
double  sy 
)
void cinder::cairo::Matrix::rotate ( double  radians)

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: