| 338 | r3->yaw_cur += tmp2; |
| 339 | } |
| 340 | static void xCam_CorrectPitch(xCamera* r3, F32 f1, F32 f2, F32 f3) |
| 341 | { |
| 342 | // non-matching: same reasons as xCam_CorrectYaw |
| 343 | |
| 344 | F32 tmp1, tmp2; |
| 345 | |
| 346 | tmp1 = 1.0f / r3->pitch_ct; |
| 347 | |
| 348 | tmp2 = 2.0f * r3->pitch_cd * f1 - f2 * f3; |
| 349 | tmp2 = tmp1 * tmp2; |
| 350 | tmp2 -= f2; |
| 351 | tmp2 *= r3->pitch_csv * f3; |
| 352 | |
| 353 | r3->pitch_cur += tmp2; |
| 354 | } |
| 355 | |
| 356 | static void xCam_CorrectRoll(xCamera* r3, F32 f1, F32 f2, F32 f3) |
| 357 | { |