错误的是(使用VS2013 - GLM):函数模板“GLM:暧昧电话::球面线性插值
重载函数的多个实例 “GLM ::球面线性插值” 的 参数列表匹配: :detail :: tquat glm :: slerp(const glm :: detail :: tquat & x,const glm :: detail :: tquat & y,const T & a)“function template”T glm :: slerp(const glm :: detail :: tquat & x,const glm :: detail :: tquat & y,const T & a)“ argument ty pes是:(glm :: quat,glm :: quat,float)
我用两个glm :: quat和一个常量浮点值调用它,就像使用glm :: lerp和GLM ::混合。错误消息中显示的两个重载函数仅在返回类型上有所不同。我一直在寻找一个没有任何运气的答案。
确切的呼叫:
const float t = 0.5f;
glm::quat newQ = glm::slerp(quatA, quatB, t);
我不假设VS2013指向错误引用的文件内声明? – 2015-01-21 06:40:16