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.11 by schorsch, Thu Mar 10 18:24:49 2016 UTC vs.
Revision 3.14 by greg, Fri Dec 3 16:51:44 2021 UTC

# Line 41 | Line 41 | extern double  atan2a(double y, double x);
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
48
49 /* VC 2015 has those defined (XXX possibly earlier?) */
50 #if ((defined(_WIN32) || defined(_WIN64)) \
51                && (!defined(_MS_VER) || _MS_VER < 1900))
52 extern double   erf(double x);
53 extern double   erfc(double x);
54 #endif
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 63 | Line 56 | extern int32   encodedir(FVECT dv);
56   extern void     decodedir(FVECT dv, int32 dc);
57   extern double   dir2diff(int32 dc1, int32 dc2);
58   extern double   fdir2diff(int32 dc1, FVECT v2);
59 +                                        /* defined in disk2square.c */
60 + extern void     SDsquare2disk(double ds[2], double seedx, double seedy);
61 + extern void     SDdisk2square(double sq[2], double diskx, double disky);
62  
63   #ifdef __cplusplus
64   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines