MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / getdist

Function getdist

Descent3/pilot.cpp:2314–2319  ·  view source on GitHub ↗

returns the optimal distance to place the camera

Source from the content-addressed store, hash-verified

2312
2313// returns the optimal distance to place the camera
2314float 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//

Callers

nothing calls this directly

Calls 1

vm_SinCosFunction · 0.50

Tested by

no test coverage detected