   [MDX] Converting C++ to C# problems
  I am in the process of converting some C++ DirctX Code to C# and m having problems with one line... It is more then likely going to be an easy fix but at the moment it is really doing my head in.The line I am trying to convert is as follows,// Check to ensure vectors are perpendicular// Still need to complete...conversion problems.if(fabs(D3DXVec3Dot(&m_up,&m_right)) > 0.01){    //if they are not    D3DXVec3Cross(&m_up, &m_lookat, &m_right);}If some one could help and convert the line it would be really great. The main problem is just the if statement, I know how to do the D3DXVec3Cross.   
  Should be if (Math.Abs(Vector3.DotProduct(m_up, m_right)) > 0.01);  fabs would be Math.abs(), to give you the absolute value of something.D3DXVec3Dot is a Vector3 Dot operation (this would be in Vector3.Dot() or Vector3.DotProduct in MDX2.0).Should turn out into something like this:if (Math.Abs(Vector3.Dot(m_up, m_right)) > 0.01f){ // Enter cross here.}[edit] yikes, 3 minutes too late. That's a lot compared to the little I've written and the fact I didn't even bother to test it :).   ;  Thanks, Worked.... Now to the next step :)   