14 |
|
*/ |
15 |
|
|
16 |
|
typedef struct cone { |
17 |
< |
double *ca; /* cone arguments (o->oargs.farg) */ |
17 |
> |
FLOAT *ca; /* cone arguments (o->oargs.farg) */ |
18 |
|
char p0, p1; /* indices for endpoints */ |
19 |
|
char r0, r1; /* indices for radii */ |
20 |
|
FVECT ad; /* axis direction vector */ |
21 |
< |
double al; /* axis length */ |
22 |
< |
double sl; /* side length */ |
23 |
< |
double (*tm)[4]; /* pointer to transformation matrix */ |
21 |
> |
FLOAT al; /* axis length */ |
22 |
> |
FLOAT sl; /* side length */ |
23 |
> |
FLOAT (*tm)[4]; /* pointer to transformation matrix */ |
24 |
|
} CONE; |
25 |
|
|
26 |
|
#define CO_R0(co) ((co)->ca[(co)->r0]) |