   [.net] Need help translating DX code to C#
  Can someone please help me translating this code to C#. Can you also point me to where I can find documentation for Managed DX. Thanks!D3DXVECTOR3 start(startx,starty,startz); // ray stop positionD3DXVECTOR3 stop(endx,endy,endz); // ray stop positionD3DXVECTOR3 ray = stop-start; // ray difference vector// create infinite planeD3DXPLANE vPlane;D3DXPlaneFromPoints(&vPlane,&D3DXVECTOR3(v0.x,v0.y,v0.z),&D3DXVECTOR3(v1.x,v1.y,v1.z),&D3DXVECTOR3(v2.x,v2.y,v2.z));// infinite plane normalD3DXVECTOR3 vPlaneNormal(vPlane.a,vPlane.b,vPlane.c);if(D3DXVec3Dot(&vPlaneNormal,&ray)==0){//nothing yet} else {float amount = -(D3DXPlaneDotCoord(&vPlane,&start))/ D3DXVec3Dot(&vPlaneNormal,&ray;D3DXVECTOR3 iPoint = start+(ray*amount);}   
  There is no managed DirectX anymore. Microsoft has discontinued it and stopped providing support. The samples and documentation are no longer included in the SDK.You can make use of SlimDX, however, which is very similar to MDX. Here's how your snippet of code would look in SlimDX:Vector3 start = new Vector3(startX, startY, startZ);Vector3 stop = new Vector3(endX, endY, endZ);Vector3 ray = stop - start;Plane plane = Plane.FromPoints(new Vector3[] { v0, v1, v2 });if (Vector3.Dot(plane.Normal, ray) == 0){    // nothing yet}else{    float amount = -Plane.DotCoordinate(plane, start) / Vector3.Dot(plane.Normal, ray);    Vector3 point = start + (ray * amount);};  Thank you for the explanation MikeIt is good that I am at the beginning of the project so I can try switching to SlimDX, since I see I can mix it with MDX (ambigous names). Does it work with both VS2005 and 2008?I see there are some methods to get intersection of plane and ray (I am trying to get world coordinates of the intersection mouse ray and plane) but since yesterday I get 'Request time out' whenever I try to open it, and there is something wrong with downloadable documentation from the official page.   