| 9 |
|
|
| 10 |
|
#include "glare.h" |
| 11 |
|
|
| 12 |
– |
#define FEQ(a,b) ((a)-(b)<=FTINY&&(b)-(a)<=FTINY) |
| 13 |
– |
#define VEQ(v1,v2) (FEQ((v1)[0],(v2)[0])&&FEQ((v1)[1],(v2)[1]) \ |
| 14 |
– |
&&FEQ((v1)[2],(v2)[2])) |
| 15 |
– |
|
| 12 |
|
char *rtargv[64] = {"rtrace", "-h-", "-ov", "-fff", "-ld-", "-i-", "-I-"}; |
| 13 |
|
int rtargc = 7; |
| 14 |
|
|
| 191 |
|
exit(1); |
| 192 |
|
} |
| 193 |
|
ourview = pictview; |
| 194 |
< |
} else if (picture != NULL && !VEQ(ourview.vp, pictview.vp)) { |
| 194 |
> |
} else if (picture != NULL && !VABSEQ(ourview.vp, pictview.vp)) { |
| 195 |
|
fprintf(stderr, "%s: picture must have same viewpoint\n", |
| 196 |
|
progname); |
| 197 |
|
exit(1); |