returns the optimal distance to place the camera
| 2312 | |
| 2313 | // returns the optimal distance to place the camera |
| 2314 | float getdist(angle ang, float height) { |
| 2315 | float s, c, t; |
| 2316 | vm_SinCos(ang, &s, &c); |
| 2317 | t = s / c; |
| 2318 | return (height / t); |
| 2319 | } |
| 2320 | |
| 2321 | // ImportGraphic |
| 2322 | // |
nothing calls this directly
no test coverage detected