--- ray/src/common/mat4.h 2003/06/26 00:58:09 2.9 +++ ray/src/common/mat4.h 2003/07/14 22:23:59 2.12 @@ -1,26 +1,21 @@ -/* RCSid $Id: mat4.h,v 2.9 2003/06/26 00:58:09 schorsch Exp $ */ +/* RCSid $Id: mat4.h,v 2.12 2003/07/14 22:23:59 schorsch Exp $ */ /* * Definitions for 4x4 matrix operations */ #ifndef _RAD_MAT4_H_ #define _RAD_MAT4_H_ -#ifdef __cplusplus -extern "C" { -#endif -#include "copyright.h" - #include #include "fvect.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef RREAL MAT4[4][4]; -#ifdef BSD -#define copymat4(m4a,m4b) bcopy((void *)m4b,(void *)m4a,sizeof(MAT4)) -#else #define copymat4(m4a,m4b) (void)memcpy((void *)m4a,(void *)m4b,sizeof(MAT4)) -#endif #define MAT4IDENT { {1.,0.,0.,0.}, {0.,1.,0.,0.}, \ {0.,0.,1.,0.}, {0.,0.,0.,1.} }