开发者

Math methods in the not managed DirectX

开发者 https://www.devze.com 2023-01-12 06:10 出处:网络
I am c开发者_如何学Curious if there are defined some math methods in not managed DX such as RotationAxis in the managed one (converts a pair of angle and vetor to a quatenion - http://msdn.microsoft.c

I am c开发者_如何学Curious if there are defined some math methods in not managed DX such as RotationAxis in the managed one (converts a pair of angle and vetor to a quatenion - http://msdn.microsoft.com/en-us/library/bb281652(v=VS.85).aspx).

I have realized that in managed DX You can use a lot of predefined math methods, but is it true at not managed directx also?

Okay, i know it is not difficult to implement such algorithms, but it would be good to use predefined ones.

And how can I use math methods? I could not find anithing in SDK doc or google :(

Sorr my for "english", and my noobinity :)


They're located in the D3DX library, included in the SDK. Just include <d3dx9.h> and don't forget to add D3dx9.lib to the linker dependencies.

Math functions (look for D3DXQuaternion*, such as D3DXQuaternionRotationAxis which should be the function you're looking for)

0

精彩评论

暂无评论...
验证码 换一张
取 消