Página Principal | Lista Alfabética | Lista de Componentes | Lista de Arquivos | Componentes Membros | Arquivos Membros

Referência do Arquivo t2d.h

Este grafo mostra quais arquivos estão direta ou indiretamente relacionados com este arquivo:

Included by dependency graph

Vá para o código-fonte deste arquivo.

2D affine transformation module

Data:
04-Oct-2004
Autor:
Luiz F. Martha
Versão:
1.0
This header file contains public function specification and prototypes of package maintains a 2D transformation matrix which can be initialized as the identity matrix, and which accumulates the usual 2D transformations.

There is a function to transform a given 2D point according to the current transformation matrix.

The 2D transformations considered are scaling, translation, and rotation. There is a function for each one of these transformations. The effect of these functions is to accumulate the corresponding transformation in the current transformation matrix.

Revisions:

  • Report modifications here (including name and date).


void t2dTransform (double *x, double *y)
 This function transforms the given coordinates according to the current transformation matrix.

void t2dIdentity (void)
 This function sets the current transformation matrix as the identity matrix.

void t2dTranslate (double dx, double dy)
 This function accumulates a translation transformation to the current transformation matrix.

void t2dScale (double sx, double sy)
 This function accumulates a scaling transformation to the current transformation matrix.

void t2dScaleAbout (double cx, double cy, double sx, double sy)
 This function accumulates a scaling transformation to the current transformation matrix.

void t2dRotate (double angle)
 This function accumulates a rotation transformation to the current transformation matrix.

void t2dRotateAbout (double cx, double cy, double angle)
 This function accumulates a rotation transformation to the current transformation matrix.


Funções

void t2dIdentity void   ) 
 

This function sets the current transformation matrix as the identity matrix.

Definição na linha 120 do arquivo t2d.c.

Referências mt.

Referenciado por _dspMemberAtt().

void t2dRotate double  angle  ) 
 

This function accumulates a rotation transformation to the current transformation matrix.

The rotation is performed about the origin (center of rotation). The rotation angle in assumed given in degrees.

Parâmetros:
angle - rotation angle (degrees) (in)

Definição na linha 188 do arquivo t2d.c.

Referências Matrix2d, rad e t2dAccumulate().

Referenciado por _dspMemberAtt() e t2dRotateAbout().

void t2dRotateAbout double  cx,
double  cy,
double  angle
 

This function accumulates a rotation transformation to the current transformation matrix.

The rotation is performed about the given point (center of rotation). The rotation angle in assumed given in degrees.

Parâmetros:
cx - x coordinate of center of rotation (in)
cy - y coordinate of center of rotation (in)
angle - rotation angle (degrees) (in)

Definição na linha 210 do arquivo t2d.c.

Referências t2dRotate() e t2dTranslate().

void t2dScale double  sx,
double  sy
 

This function accumulates a scaling transformation to the current transformation matrix.

The scaling is performed about the origin (center of scaling).

Parâmetros:
sx - scaling parameter in x coordinate (in)
sy - scaling parameter in y coordinate (in)

Definição na linha 152 do arquivo t2d.c.

Referências Matrix2d e t2dAccumulate().

Referenciado por t2dScaleAbout().

void t2dScaleAbout double  cx,
double  cy,
double  sx,
double  sy
 

This function accumulates a scaling transformation to the current transformation matrix.

The scaling is performed about the given point (center of scaling).

Parâmetros:
cx - x coordinate of center of scaling (in)
cy - y coordinate of center of scaling (in)
sx - scaling parameter in x coordinate (in)
sy - scaling parameter in y coordinate (in)

Definição na linha 172 do arquivo t2d.c.

Referências t2dScale() e t2dTranslate().

void t2dTransform double *  x,
double *  y
 

This function transforms the given coordinates according to the current transformation matrix.

Parâmetros:
x - x coordinate of transformed point (in/out)
y - y coordinate of transformed point (in/out)

Definição na linha 107 do arquivo t2d.c.

Referências mt.

Referenciado por _dspMemberAtt().

void t2dTranslate double  dx,
double  dy
 

This function accumulates a translation transformation to the current transformation matrix.

Parâmetros:
dx - translation parameter in x coordinate (in)
dy - translation parameter in y coordinate (in)

Definição na linha 134 do arquivo t2d.c.

Referências Matrix2d e t2dAccumulate().

Referenciado por _dspMemberAtt(), t2dRotateAbout() e t2dScaleAbout().


Gerado em Tue Oct 5 04:55:11 2004 para Trab3 por doxygen 1.3.4