cheshirekow
v0.1.0
|
wraps FcMatrix with it's member methods More...
#include <cpp_fontconfig/Matrix.h>
Public Member Functions | |
bool | equal (const Matrix &other) const |
returns true if the two matrices are equal More... | |
void | init () |
initializes the matrix to be the identity matrix More... | |
Matrix () | |
Default constructor, uninitialized memory. More... | |
Matrix (const Matrix &other) | |
copy constructor More... | |
Matrix & | operator= (const Matrix &other) |
assignment operator, copies the values of the matrix in other More... | |
void | rotate (double c, double s) |
rotate a matrix More... | |
void | scale (double sx, double sy) |
scale a matrix More... | |
void | shear (double sh, double sv) |
shear a matrix More... | |
wraps FcMatrix with it's member methods
Matrix inherits from matrix (lowercase) which is a struct with the same definition as FcMatrix. Furthermore Matrix does not declare any virtual members so it is binary compatable with FcMatrix and can be casted without reserve
|
inline |
fontconfig::Matrix::Matrix | ( | const Matrix & | other | ) |
copy constructor
stack-allocates a new matrix and copies the contents from other
bool fontconfig::Matrix::equal | ( | const Matrix & | other | ) | const |
returns true if the two matrices are equal
void fontconfig::Matrix::init | ( | ) |
initializes the matrix to be the identity matrix
assignment operator, copies the values of the matrix in other
void fontconfig::Matrix::rotate | ( | double | c, |
double | s | ||
) |
rotate a matrix
void fontconfig::Matrix::scale | ( | double | sx, |
double | sy | ||
) |
scale a matrix
void fontconfig::Matrix::shear | ( | double | sh, |
double | sv | ||
) |
shear a matrix