Check out example codes for "glm multiply vector by scalar". It will help you in understanding the concepts better.

Code Example 1

glm::vec3 a = glm::vec3(2,2,2) * 0.5f;// Should be a float scalar

Learn ReactJs, React Native from akashmittal.com