home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / IRIT / POLY3DHS.ZIP / GENMAT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-05  |  1.0 KB  |  31 lines

  1. /*****************************************************************************
  2. * General definitions of/for GenMat.c module                     *
  3. *****************************************************************************/
  4.  
  5. #ifndef    GEN_MAT_H
  6. #define GEN_MAT_H
  7.  
  8. typedef double MatrixType[4][4];
  9.  
  10. #ifndef INFINITY
  11. #define INFINITY 1e6
  12. #endif  INFINITY
  13.  
  14. /* And prototypes of the functions: */
  15.  
  16. void GenUnitMat(MatrixType Mat);
  17. void GenMatTrans(double Tx, double Ty, double Tz, MatrixType Mat);
  18. void GenMatScale(double Sx, double Sy, double Sz, MatrixType Mat);
  19. void GenMatRotX1(double Teta, MatrixType Mat);
  20. void GenMatRotX(double CosTeta, double SinTeta, MatrixType Mat);
  21. void GenMatRotY1(double Teta, MatrixType Mat);
  22. void GenMatRotY(double CosTeta, double SinTeta, MatrixType Mat);
  23. void GenMatRotZ1(double Teta, MatrixType Mat);
  24. void GenMatRotZ(double CosTeta, double SinTeta, MatrixType Mat);
  25.  
  26. void MultTwo4by4(MatrixType MatRes, MatrixType Mat1, MatrixType Mat2);
  27.  
  28. void MultVecby4by4(double VRes[3], float Vec[3], MatrixType Mat);
  29.  
  30. #endif GEN_MAT_H
  31.