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

Function iCameraSetFOV

src/SB/Core/x/iCamera.cpp:221–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221void iCameraSetFOV(RwCamera* cam, F32 fov)
222{
223 RwV2d vw;
224
225 vw.x = itan(PI * (0.5f * fov) / 180.0f);
226
227 // non-matching: frsp instruction is here for some reason
228 vw.y = 0.75f * vw.x;
229
230 RwCameraSetViewWindow(cam, &vw);
231}
232
233void iCameraAssignEnv(RwCamera* camera, iEnv* env_geom)
234{

Callers 1

xCameraSetFOVFunction · 0.70

Calls 1

itanFunction · 0.85

Tested by

no test coverage detected