| 263 | } |
| 264 | |
| 265 | static 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 | |
| 282 | static void xCam_CorrectH(xCamera* r3, F32 f1, F32 f2, F32 f3) |
| 283 | { |