On 3 September 2012 12:02, Rico Schüller kgbricola@web.de wrote:
sinb = sqrt( 1.0f - matrix->u.m[2][2] * matrix->u.m[2][2] );
I'd prefer to declare the variables as locally as possible.
As an aside, you'll probably want to use floating point functions like sqrtf() instead of ones operating on doubles like sqrt() in most of d3dx9. That's not a new issue though.