105 |
|
theta = PI/180.0/2.0 * so->oargs.farg[3]; |
106 |
|
if (theta <= FTINY) |
107 |
|
objerror(so, USER, "zero size"); |
108 |
< |
src->ss = theta >= PI/4 ? 1.0 : tan(theta); |
108 |
> |
src->ss = theta >= PI/4.0 ? 1.0 : tan(theta); |
109 |
|
src->ss2 = 2.0*PI * (1.0 - cos(theta)); |
110 |
|
} |
111 |
|
|
288 |
|
|
289 |
|
d = DOT(sp->aim, nrm); |
290 |
|
if (d > FTINY) /* center in front? */ |
291 |
< |
return(0); |
291 |
> |
return(1); |
292 |
|
/* else check horizon */ |
293 |
|
d1 = 1. - sp->siz/(2.*PI); |
294 |
< |
return(1.-FTINY-d*d > d1*d1); |
294 |
> |
return(1.-FTINY-d*d < d1*d1); |
295 |
|
} |
296 |
|
|
297 |
|
|