| 4 |
|
*/ |
| 5 |
|
#ifndef _RAD_MAT4_H_ |
| 6 |
|
#define _RAD_MAT4_H_ |
| 7 |
– |
#ifdef __cplusplus |
| 8 |
– |
extern "C" { |
| 9 |
– |
#endif |
| 7 |
|
|
| 11 |
– |
#include "copyright.h" |
| 12 |
– |
|
| 8 |
|
#include <string.h> |
| 9 |
|
|
| 10 |
|
#include "fvect.h" |
| 11 |
|
|
| 12 |
< |
typedef FLOAT MAT4[4][4]; |
| 12 |
> |
#ifdef __cplusplus |
| 13 |
> |
extern "C" { |
| 14 |
> |
#endif |
| 15 |
|
|
| 16 |
< |
#ifdef BSD |
| 17 |
< |
#define copymat4(m4a,m4b) bcopy((void *)m4b,(void *)m4a,sizeof(MAT4)) |
| 21 |
< |
#else |
| 16 |
> |
typedef RREAL MAT4[4][4]; |
| 17 |
> |
|
| 18 |
|
#define copymat4(m4a,m4b) (void)memcpy((void *)m4a,(void *)m4b,sizeof(MAT4)) |
| 23 |
– |
#endif |
| 19 |
|
|
| 20 |
|
#define MAT4IDENT { {1.,0.,0.,0.}, {0.,1.,0.,0.}, \ |
| 21 |
|
{0.,0.,1.,0.}, {0.,0.,0.,1.} } |