| 5 |
|
|
| 6 |
|
#ifndef _RAD_RTMATH_H_ |
| 7 |
|
#define _RAD_RTMATH_H_ |
| 8 |
– |
#ifdef __cplusplus |
| 9 |
– |
extern "C" { |
| 10 |
– |
#endif |
| 8 |
|
|
| 9 |
|
#include <math.h> |
| 10 |
|
|
| 11 |
< |
#include "tifftypes.h" |
| 15 |
< |
|
| 11 |
> |
#include "tiff.h" /* needed for int32, etc. */ |
| 12 |
|
#include "mat4.h" |
| 13 |
|
|
| 14 |
+ |
#ifdef __cplusplus |
| 15 |
+ |
extern "C" { |
| 16 |
+ |
#endif |
| 17 |
+ |
|
| 18 |
|
/* regular transformation */ |
| 19 |
|
typedef struct { |
| 20 |
|
MAT4 xfm; /* transform matrix */ |
| 45 |
|
#endif |
| 46 |
|
/* defined in tcos.c */ |
| 47 |
|
extern double tcos(double x); |
| 48 |
+ |
extern double aatan2(double y, double x); |
| 49 |
|
/* defined in xf.c */ |
| 50 |
|
extern int xf(XF *ret, int ac, char *av[]); |
| 51 |
|
extern int invxf(XF *ret, int ac, char *av[]); |