How do I correctly multiply an XMMATRIX by a scalar?

Posted by user43129 on Game Development See other posts from Game Development or by user43129
Published on 2014-03-08T08:13:23Z Indexed on 2014/08/20 4:32 UTC
Read the original article Hit count: 140

Filed under:
|
|
|
|

Using DirectXMath and its XMMATRIX structure in C++ and Direct X 11, how does one multiply that matrix structure by a single float scalar?

I want to implement the operation B = A * f; where A and B are XMMATRIX and f is a float.

I found all sorts of functions to multiply a matrix by another matrix or a vector. I found all sorts of functions to construct matrices.

I could find no scalar multiplication! Why is there no such function? Is there no use case? Did I miss something? How do I implement scalar multiplication?

© Game Development or respective owner

Related posts about c++

Related posts about 3d