OMNeT++ Simulation Library
5.6.1
|
#include <ccanvas.h>
Homogeneous 2D transformation matrix.
Note that the last row is not stored.
| a c t1 | | b d t2 | | 0 0 1 |
Public Member Functions | |
Methods. | |
Transform () | |
Transform (double a, double b, double c, double d, double t1, double t2) | |
Transform (const Transform &t) | |
Transform & | operator= (const Transform &t) |
Transform & | translate (double dx, double dy) |
Transform & | translate (const Point &p) |
Transform & | scale (double s) |
Transform & | scale (double sx, double sy) |
Transform & | scale (double sx, double sy, double cx, double cy) |
Transform & | scale (double sx, double sy, const Point &c) |
Transform & | rotate (double phi) |
Transform & | rotate (double phi, double cx, double cy) |
Transform & | rotate (double phi, const Point &c) |
Transform & | skewx (double coeff) |
Transform & | skewy (double coeff) |
Transform & | skewx (double coeff, double cy) |
Transform & | skewy (double coeff, double cx) |
Transform & | multiply (const Transform &t) |
Transform & | rightMultiply (const Transform &t) |
Point | applyTo (const Point &p) const |
bool | operator== (const Transform &o) const |
std::string | str () const |
Public Attributes | |
Elements of the transformation matrix. | |
double | a |
double | b |
double | c |
double | d |
double | t1 |
double | t2 |