|
golib
0.5
|
Simple affine transformation representation (2x2 matrix and translation vector). More...
#include <plot.h>
Public Member Functions | |
| Trafo2DT (Real xx=1.0, Real yx=0.0, Real xy=0.0, Real yy=1.0, Real x0=0.0, Real y0=0.0) | |
| Trafo2DT (const Trafo2DT< Real > &t) | |
| Trafo2DT< Real > & | operator= (const Trafo2DT< Real > &t) |
| void | print () const |
| void | apply (cairo_t *cr) |
| void | operator*= (const Trafo2DT< Real > &M2) |
| this = this * M2; More... | |
Public Attributes | |
| Real | xx |
| Real | xy |
| Real | yx |
| Real | yy |
| Real | x0 |
| Real | y0 |
Simple affine transformation representation (2x2 matrix and translation vector).
Represents an affine transformation, essentially in the same way Cairo does.
The transformations consists of a 2x2 matrix M
xx xy yx yy
and a translation vector T = (x0,y0) . The transformation applied to a point z then results in M * z + T .
| void goPlot::Trafo2DT< T >::operator*= | ( | const Trafo2DT< T > & | M2 | ) |
this = this * M2;
| M2 |