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

Comparing ray/src/common/rtmath.h (file contents):
Revision 3.2 by schorsch, Sat Jul 12 09:56:24 2003 UTC vs.
Revision 3.6 by greg, Fri Feb 8 16:10:07 2013 UTC

# Line 5 | Line 5
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 */
# Line 33 | Line 33 | typedef struct {
33   #define  PI             3.14159265358979323846
34   #endif
35   #endif
36 +                                        /* defined in tcos.c */
37 + extern double   tcos(double x);
38 + extern double   atan2a(double y, double x);
39  
40   #ifdef  FASTMATH
41   #define  tcos                   cos
# Line 43 | Line 46 | typedef struct {
46   #define  tsin(x)                tcos((x)-(PI/2.))
47   #define  ttan(x)                (tsin(x)/tcos(x))
48   #endif
46                                        /* defined in tcos.c */
47 extern double   tcos(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[]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines