MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zCameraTweak_LookPreCalc

Function zCameraTweak_LookPreCalc

src/SB/Game/zCameraTweak.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21static zCamTweakLook zcam_fartweak;
22
23static void zCameraTweak_LookPreCalc(zCamTweakLook* tlook, F32 d, F32 h, F32 pitch)
24{
25 F32 tan = itan(pitch);
26 F32 deltaH = d * tan;
27 tlook->h = h - deltaH;
28 tlook->dist = xsqrt(deltaH * deltaH + d * d);
29 tlook->pitch = pitch;
30}
31
32void zCameraTweakGlobal_Init()
33{

Callers 1

zCameraTweakGlobal_InitFunction · 0.85

Calls 2

itanFunction · 0.85
xsqrtFunction · 0.85

Tested by

no test coverage detected