ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/mat4.h
(Generate patch)

Comparing ray/src/common/mat4.h (file contents):
Revision 2.5 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.9 by schorsch, Thu Jun 26 00:58:09 2003 UTC

# Line 2 | Line 2
2   /*
3   * Definitions for 4x4 matrix operations
4   */
5 + #ifndef _RAD_MAT4_H_
6 + #define _RAD_MAT4_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10  
11   #include "copyright.h"
12  
13 + #include  <string.h>
14 +
15   #include  "fvect.h"
16  
17 < typedef FLOAT  MAT4[4][4];
17 > typedef RREAL  MAT4[4][4];
18  
19   #ifdef  BSD
20 < #define  copymat4(m4a,m4b)      bcopy((char *)m4b,(char *)m4a,sizeof(MAT4))
20 > #define  copymat4(m4a,m4b)      bcopy((void *)m4b,(void *)m4a,sizeof(MAT4))
21   #else
22 < #define  copymat4(m4a,m4b)      (void)memcpy((char *)m4a,(char *)m4b,sizeof(MAT4))
22 > #define  copymat4(m4a,m4b)      (void)memcpy((void *)m4a,(void *)m4b,sizeof(MAT4))
23   #endif
24  
25   #define  MAT4IDENT              { {1.,0.,0.,0.}, {0.,1.,0.,0.}, \
# Line 22 | Line 29 | extern MAT4  m4ident;
29  
30   #define  setident4(m4)          copymat4(m4, m4ident)
31  
25 #ifdef NOPROTO
32  
27 extern void     multmat4();
28 extern void     multv3();
29 extern void     multp3();
30 extern int      invmat4();
31
32 #else
33
33   extern void     multmat4(MAT4 m4a, MAT4 m4b, MAT4 m4c);
34   extern void     multv3(FVECT v3a, FVECT v3b, MAT4 m4);
35   extern void     multp3(FVECT p3a, FVECT p3b, MAT4 m4);
36   extern int      invmat4(MAT4 inverse, MAT4 mat);
37  
38 +
39 + #ifdef __cplusplus
40 + }
41   #endif
42 + #endif /* _RAD_MAT4_H_ */
43 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines