How do I correctly multiply an XMMATRIX by a scalar?
- by user43129
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?