Since you're in here anyway, this would be a good opportunity to change the parameters of these two functions to const glm::vec3&.