Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct {
- double matriz[4][4];
- } Matriz4x4;
- typedef struct {
- double vertex[4];
- } Matriz4x1;
- typedef struct {
- Matriz4x1 vertice[MAXVERT];
- int numVertices;
- } TipoObjeto;
- //Protótipos das funções
- void criaVertice (Matriz4x1 *M, double x, double y, double z);
- void cria (TipoObjeto *Obj, FILE *input);
- void identidade (Matriz4x4 *M);
- Matriz4x4 trans(Matriz4x4 M, double dX, double dY, double dZ);
- Matriz4x4 escala(Matriz4x4 M, double fX, double fY, double fZ);
- Matriz4x4 rotacao(Matriz4x4 M, int eixo, double angulo);
- Matriz4x4 multiplica(Matriz4x4 M1, Matriz4x4 M2);
- TipoObjeto matrizTransformacao(Matriz4x4 M, TipoObjeto Obj);
- void Imprime(TipoObjeto Obj, char *fName);
Add Comment
Please, Sign In to add comment