浏览代码

math: remove debug code.

undefined
Sam Hocevar 12 年前
父节点
当前提交
7fa84cdf36
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. +0
    -2
      src/math/vector.cpp

+ 0
- 2
src/math/vector.cpp 查看文件

@@ -504,9 +504,7 @@ template<> quat quat::rotate(float degrees, float x, float y, float z)
template<> quat quat::rotate(vec3 const &src, vec3 const &dst)
{
vec3 v = cross(src, dst);
v.printf();
float d = dot(src, dst) + lol::sqrt(sqlength(src) * sqlength(dst));
fprintf(stderr, "%f + %f = %f\n", dot(src, dst), lol::sqrt(sqlength(src) * sqlength(dst)), d);

return normalize(quat(d, v.x, v.y, v.z));
}


正在加载...
取消
保存