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.3 by schorsch, Mon Jul 14 22:23:59 2003 UTC vs.
Revision 3.15 by greg, Mon Dec 13 21:05:00 2021 UTC

# Line 8 | Line 8
8  
9   #include  <math.h>
10  
11 < #include  "tifftypes.h"
11 > #include  "tiff.h"              /* needed for int32, etc. */
12   #include  "mat4.h"
13  
14   #ifdef __cplusplus
15   extern "C" {
16   #endif
17
17                                  /* regular transformation */
18   typedef struct {
19          MAT4  xfm;                              /* transform matrix */
# Line 33 | Line 32 | typedef struct {
32   #define  PI             3.14159265358979323846
33   #endif
34   #endif
35 +                                        /* defined in tcos.c */
36 + extern double   tcos(double x);
37 + extern double   atan2a(double y, double x);
38  
39 < #ifdef  FASTMATH
39 > #ifdef  __FAST_MATH__
40   #define  tcos                   cos
41   #define  tsin                   sin
42   #define  ttan                   tan
43   #else
44 <                                        /* table-based cosine approximation */
44 >                                        /* table-based approx in tcos.c */
45   #define  tsin(x)                tcos((x)-(PI/2.))
46   #define  ttan(x)                (tsin(x)/tcos(x))
47   #endif
46                                        /* defined in tcos.c */
47 extern double   tcos(double x);
48                                          /* defined in xf.c */
49   extern int      xf(XF *ret, int ac, char *av[]);
50   extern int      invxf(XF *ret, int ac, char *av[]);
# Line 61 | Line 61 | extern double  fdir2diff(int32 dc1, FVECT v2);
61   }
62   #endif
63   #endif /* _RAD_RTMATH_H_ */
64

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines