In D3D9 there were functions to deal with D3DXVECTOR3's in order to calculate dot and cross products. However these have disappeared from the math library in D3D10.
I assume they must have gone somewhere? My question is where and why?
|
In D3D9 there were functions to deal with D3DXVECTOR3's in order to calculate dot and cross products. However these have disappeared from the math library in D3D10. I assume they must have gone somewhere? My question is where and why? |
||||
|
|
|
The The following example worked fine for me (Please excuse the absolute path for including the header):
Please note that it is probably a good idea to use DirectX Math, because there is no D3DXMath library in DirectX 11 anymore (although you could still use the |
|||
|
|
|
These are just simple functions that don't depend on a Direct3D device being available, so as long as the classes/structs being used are the same, you could in theory even go back to D3D8 versions of them (you could even use them in an OpenGL program if you were so inclined). |
|||
|
|