added GLM_FUNC_DECL to avoid nvcc warnings