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

Function xCam_CorrectD

src/SB/Core/x/xCamera.cpp:265–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265static void xCam_CorrectD(xCamera* r3, F32 f1, F32 f2, F32 f3)
266{
267 // non-matching: incorrect float register
268
269 F32 tmp1, tmp2, tmp3;
270
271 tmp1 = 1.4285715f * (2.0f * f1 - f2 * f3);
272 tmp1 -= f2;
273 tmp1 *= f3;
274
275 tmp2 = r3->mbasis.at.x * tmp1;
276 tmp3 = r3->mbasis.at.z * tmp1;
277
278 r3->mat.pos.x += tmp2;
279 r3->mat.pos.z += tmp3;
280}
281
282static void xCam_CorrectH(xCamera* r3, F32 f1, F32 f2, F32 f3)
283{

Callers 1

_xCameraUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected