I'd prefer using references (in this case glm::vec3&) for parameters intended as output parameters.