In OpenGL for Java, Matrix4f has a transform() method. I am trying to look at an example using this, but want to translate it into using GLM. But I cannot find an equivalent to transform() in GLM, nor do I grasp what transform() really does.
For example:
In Java:
Vector4f direction = new Vector4f(x, y, z, 1);
Matrix4f rotationMatrix = new Matrix4f();
… set rotationMatrix …
Matrix4f.transform(rotationMatrix, direction, direction);
With GLM in C++:
vec4 direction = vec4(x, y, z, 1);
mat4 rotationMatrix = mat4();
… set rotationMatrix …
??? What to use instead of transform() ???