could this be moved to .h file... also, shouldn't this be returning type "const glm::vec3&"