How do I multiply a Matrix by a Vector4 in XNA/monogame?
Matrix a = Matrix.Identity;
Vector4 b = Vector4.Zero;
b = a*b;
This gives an error. This should be allowed afaik. Do I really need to make my own function to multiply a vector by a matrix???
There are a bunch of static
Transformmethods onVector4which are probably what you're looking for. In particular this one.The implementation looks similar to the following (presented in terms of the above variables).