Guest User

Untitled

a guest
Oct 19th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. typedef struct {
  2. double matriz[4][4];
  3. } Matriz4x4;
  4.  
  5. typedef struct {
  6. double vertex[4];
  7.  
  8. } Matriz4x1;
  9.  
  10. typedef struct {
  11. Matriz4x1 vertice[MAXVERT];
  12. int numVertices;
  13. } TipoObjeto;
  14.  
  15. //Protótipos das funções
  16. void criaVertice (Matriz4x1 *M, double x, double y, double z);
  17.  
  18. void cria (TipoObjeto *Obj, FILE *input);
  19.  
  20. void identidade (Matriz4x4 *M);
  21.  
  22. Matriz4x4 trans(Matriz4x4 M, double dX, double dY, double dZ);
  23.  
  24. Matriz4x4 escala(Matriz4x4 M, double fX, double fY, double fZ);
  25.  
  26. Matriz4x4 rotacao(Matriz4x4 M, int eixo, double angulo);
  27.  
  28. Matriz4x4 multiplica(Matriz4x4 M1, Matriz4x4 M2);
  29.  
  30. TipoObjeto matrizTransformacao(Matriz4x4 M, TipoObjeto Obj);
  31.  
  32. void Imprime(TipoObjeto Obj, char *fName);
Add Comment
Please, Sign In to add comment