#include "qwmatrix.h"
#include "qdatastream.h"
#include "qregion.h"
#include <math.h>
#include <limits.h>
Documentación de los 'defines'
#define MAPDOUBLE |
( |
|
x, |
|
|
|
y, |
|
|
|
nx, |
|
|
|
ny |
|
) |
| |
Valor:{ \
double fx = x; \
double fy = y; \
nx = _m11*fx + _m21*fy + _dx; \
ny = _m12*fx + _m22*fy + _dy; \
}
#define MAPINT |
( |
|
x, |
|
|
|
y, |
|
|
|
nx, |
|
|
|
ny |
|
) |
| |
Valor:{ \
double fx = x; \
double fy = y; \
nx = qRound(_m11*fx + _m21*fy + _dx); \
ny = qRound(_m12*fx + _m22*fy + _dy); \
}
Documentación de las variables
const double deg2rad = 0.017453292519943295769 |