OMNeT++ Simulation Library  6.0.3
cFigure::Transform Struct Reference

#include <ccanvas.h>

Description

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
 
Transformoperator= (const Transform &t)=default
 
Transformtranslate (double dx, double dy)
 
Transformtranslate (const Point &p)
 
Transformscale (double s)
 
Transformscale (double sx, double sy)
 
Transformscale (double sx, double sy, double cx, double cy)
 
Transformscale (double sx, double sy, const Point &c)
 
Transformrotate (double phi)
 
Transformrotate (double phi, double cx, double cy)
 
Transformrotate (double phi, const Point &c)
 
Transformskewx (double coeff)
 
Transformskewy (double coeff)
 
Transformskewx (double coeff, double cy)
 
Transformskewy (double coeff, double cx)
 
Transformmultiply (const Transform &t)
 
TransformrightMultiply (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
 

The documentation for this struct was generated from the following file: