| # | Line 337 | Line 337 | getrotate( /* rotate camera */ | |
|---|---|---|
| 337 | ) | |
| 338 | { | |
| 339 | VIEW nv = ourview; | |
| 340 | – | FVECT v1; |
| 340 | double angle, elev, zfact; | |
| 341 | ||
| 342 | elev = 0.0; zfact = 1.0; | |
| # | Line 346 | Line 345 | getrotate( /* rotate camera */ | |
| 345 | return; | |
| 346 | } | |
| 347 | spinvector(nv.vdir, ourview.vdir, ourview.vup, angle*(PI/180.)); | |
| 348 | < | if (elev != 0.0) { |
| 349 | < | fcross(v1, nv.vdir, ourview.vup); |
| 350 | < | normalize(v1); |
| 352 | < | spinvector(nv.vdir, nv.vdir, v1, elev*(PI/180.)); |
| 353 | < | } |
| 348 | > | if (elev != 0.0) |
| 349 | > | geodesic(nv.vdir, nv.vdir, nv.vup, elev*(PI/180.), GEOD_RAD); |
| 350 | > | |
| 351 | zoomview(&nv, zfact); | |
| 352 | newview(&nv); | |
| 353 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |