[英]How to multiply XMMATRIX and XMVECTOR (DirectX11)?
I want to multiply the vector and the matrix. 我想将向量和矩阵相乘。 The vector is of
XMVECTOR
type and the matrix is of XMMATRIX
type. 矢量是
XMVECTOR
类型,矩阵是XMMATRIX
类型。 I cannot find any function in DirectX SDK to do it. 我在DirectX SDK中找不到任何功能。 There is
XMMatrixMultiply
but only for two matrixs, the same for vectors - no (vector, matrix)
function. 有
XMMatrixMultiply
但只有两个矩阵,矢量相同 - 没有(vector, matrix)
函数。
您正在寻找的功能是XMVector3Transform (或XMVector4Transform ,它取决于您想要的)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.