錯誤的是(使用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