# | Line 240 | Line 240 | FVECT p; | |
---|---|---|
240 | case VT_CYL: /* cylindrical panorama */ | |
241 | ip[2] = DOT(disp,v->vdir); | |
242 | d = DOT(disp,v->hvec); | |
243 | < | ip[0] = 180.0/PI * atan2(ip[2],d) / v->horiz + 0.5 - v->hoff; |
243 | > | ip[0] = 180.0/PI * atan2(d,ip[2]) / v->horiz + 0.5 - v->hoff; |
244 | ip[1] = DOT(disp,v->vvec)/v->vn2 + 0.5 - v->voff; | |
245 | if (v->vfore > FTINY) | |
246 | ip[2] = sqrt(DOT(disp,disp)) * |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |