OMNeT++ Simulation Library
6.0.3
|
#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)=default | |
Transform & | operator= (const Transform &t)=default |
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 = 1 |
double | b = 0 |
double | c = 0 |
double | d = 1 |
double | t1 = 0 |
double | t2 = 0 |