--- ray/src/common/rtmath.h 2003/07/12 09:56:24 3.2 +++ ray/src/common/rtmath.h 2013/02/07 20:19:52 3.5 @@ -1,20 +1,20 @@ -/* RCSid $Id: rtmath.h,v 3.2 2003/07/12 09:56:24 schorsch Exp $ */ +/* RCSid $Id: rtmath.h,v 3.5 2013/02/07 20:19:52 greg Exp $ */ /* * Header for Radiance vector and math routines */ #ifndef _RAD_RTMATH_H_ #define _RAD_RTMATH_H_ -#ifdef __cplusplus -extern "C" { -#endif #include -#include "tifftypes.h" - +#include "tiff.h" /* needed for int32, etc. */ #include "mat4.h" +#ifdef __cplusplus +extern "C" { +#endif + /* regular transformation */ typedef struct { MAT4 xfm; /* transform matrix */ @@ -45,6 +45,7 @@ typedef struct { #endif /* defined in tcos.c */ extern double tcos(double x); +extern double aatan2(double y, double x); /* defined in xf.c */ extern int xf(XF *ret, int ac, char *av[]); extern int invxf(XF *ret, int ac, char *av[]);