DirectX10 中的叉积和点积去哪儿了?
在 directX9 中,有一些函数可以处理 D3DXVECTOR3 以计算点积和叉积:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb205508(v=VS.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/bb205507(v=VS.85).aspx
但是,这些已从 DX10 中的 D3DXMath 库中消失。
http://msdn.microsoft。 com/en-us/library/windows/desktop/bb205164(v=vs.85).aspx
我想他们一定去了某个地方?我的问题是在哪里,以及为什么?谢谢。
In directX9 there were functions to deal with D3DXVECTOR3's in order to calculate dot and cross products:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb205508(v=VS.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/bb205507(v=VS.85).aspx
However these have dissappeared from the D3DXMath library in DX10.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb205164(v=vs.85).aspx
I assume they must have gone somewhere? My question is where, and also why? Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道在 DX10 中 D3DXMath 仍然存在,但是对于 DX11,它被 XNAMath 取代,XNAMath 与 Xbox 和 PC 兼容。 (这是我对缺少功能的第一个猜测)
我做了一个快速检查,我的(2010 年 6 月最新)使用 D3DX10Math.h 的 sdk 为我提供了
D3DXVec3Dot() 和 D3DXVec3Cross()
D3DXVec3Dot
D3DXVec3Cross
是吗只是文档页面没有链接它们的情况? (我的链接适用于 dx9,但在 Visual Studio intellisense 中显示它们适用于 d3dx10Math)
I know in DX10 D3DXMath still exists however for DX11 it was replaced in favour for XNAMath which is compatable for xbox and pc. (which was my first guess for missing functionality)
I did a quick check and my (latest june 2010) sdk using D3DX10Math.h gave me the option for
D3DXVec3Dot() and D3DXVec3Cross()
D3DXVec3Dot
D3DXVec3Cross
Is it just a case that documentation page not linking them? (my links are for dx9 but in visual studio intellisense showed them for d3dx10Math)