OMNeT++ Simulation Library  5.6.1
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)
 
Transformoperator= (const Transform &t)
 
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
 
double b
 
double c
 
double d
 
double t1
 
double t2
 

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