How to multiply XMMATRIX and XMVECTOR (DirectX11)?

15,103

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

Share:
15,103
PolGraphic
Author by

PolGraphic

I'm a programmer and web designer from Poland.

Updated on June 03, 2022

Comments

  • PolGraphic
    PolGraphic almost 2 years

    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.