14 |
|
#ifdef __cplusplus |
15 |
|
extern "C" { |
16 |
|
#endif |
17 |
– |
|
17 |
|
/* regular transformation */ |
18 |
|
typedef struct { |
19 |
|
MAT4 xfm; /* transform matrix */ |
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 |
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 |
|
} |