15 |
|
extern "C" { |
16 |
|
#endif |
17 |
|
|
18 |
– |
#include "copyright.h" |
19 |
– |
|
18 |
|
typedef struct cone { |
19 |
|
RREAL *ca; /* cone arguments (o->oargs.farg) */ |
20 |
|
char p0, p1; /* indices for endpoints */ |
25 |
|
RREAL (*tm)[4]; /* pointer to transformation matrix */ |
26 |
|
} CONE; |
27 |
|
|
28 |
< |
#define CO_R0(co) ((co)->ca[(co)->r0]) |
29 |
< |
#define CO_R1(co) ((co)->ca[(co)->r1]) |
28 |
> |
#define CO_R0(co) ((co)->ca[(int)((co)->r0)]) |
29 |
> |
#define CO_R1(co) ((co)->ca[(int)((co)->r1)]) |
30 |
|
#define CO_P0(co) ((co)->ca+(co)->p0) |
31 |
|
#define CO_P1(co) ((co)->ca+(co)->p1) |
32 |
|
|