Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. I cannot find any function in DirectX SDK to do it. There is XMMatrixMultiply but only for two matrixs, the same for vectors - no (vector, matrix) function.

like image 880
PolGraphic Avatar asked Aug 14 '12 14:08

PolGraphic


1 Answers

The function you're looking for is XMVector3Transform (or XMVector4Transform, it depends on what you want).

like image 184
avakar Avatar answered Nov 08 '22 01:11

avakar