瀏覽代碼

linmath: Remove redundant sin() calculation in LQuaternion

rdb 4 年之前
父節點
當前提交
8f9d23ff29
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      panda/src/linmath/lquaternion_src.cxx

+ 0 - 1
panda/src/linmath/lquaternion_src.cxx

@@ -106,7 +106,6 @@ set_hpr(const FLOATNAME(LVecBase3) &hpr, CoordinateSystem cs) {
   v = FLOATNAME(LVector3)::right(cs);
   a = deg_2_rad(hpr[1] * 0.5f);
   csincos(a, &s, &c);
-  s = csin(a);
   quat_p.set(c, v[0] * s, v[1] * s, v[2] * s);
   v = FLOATNAME(LVector3)::forward(cs);
   a = deg_2_rad(hpr[2] * 0.5f);