241 |
|
RGBPRIMS pr |
242 |
|
) |
243 |
|
{ |
244 |
< |
int i; |
244 |
> |
int i, j; |
245 |
|
|
246 |
|
for (i = 0; i < 4; i++) { |
247 |
< |
if ((pr[i][CIEX] <= -.5) | (pr[i][CIEY] <= -.5)) |
247 |
> |
if ((pr[i][CIEX] <= -1.) | (pr[i][CIEY] <= -1.)) |
248 |
|
return(0); |
249 |
< |
if ((pr[i][CIEX] >= 1.5) | (pr[i][CIEY] >= 1.5)) |
249 |
> |
if ((pr[i][CIEX] >= 2.) | (pr[i][CIEY] >= 2.)) |
250 |
|
return(0); |
251 |
< |
if (pr[i][CIEX] + pr[i][CIEY] >= 1.5) |
251 |
> |
if (pr[i][CIEX] + pr[i][CIEY] <= -1.) |
252 |
|
return(0); |
253 |
+ |
if (pr[i][CIEX] + pr[i][CIEY] >= 2.) |
254 |
+ |
return(0); |
255 |
|
} |
256 |
+ |
for (i = 0; i < 4; i++) |
257 |
+ |
for (j = i+1; j < 4; j++) |
258 |
+ |
if (CEQ(pr[i][CIEX],pr[j][CIEX]) && |
259 |
+ |
CEQ(pr[i][CIEY],pr[j][CIEY])) |
260 |
+ |
return(0); |
261 |
|
return(1); |
262 |
|
} |
263 |
|
|