瀏覽代碼

comment refinement

David Rose 24 年之前
父節點
當前提交
ba9ddfaa14
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      panda/src/linmath/lquaternion_src.cxx

+ 3 - 4
panda/src/linmath/lquaternion_src.cxx

@@ -177,10 +177,9 @@ set_from_matrix(const FLOATNAME(LMatrix3) &m) {
     // It is tempting to try to compare the absolute values of the
     // It is tempting to try to compare the absolute values of the
     // diagonal values in the code below, instead of their normal,
     // diagonal values in the code below, instead of their normal,
     // signed values.  Don't do it.  We are actually maximizing the
     // signed values.  Don't do it.  We are actually maximizing the
-    // value of S (computed within the switch statement below), which
-    // must always be positive, and is therefore based on the diagonal
-    // whose actual value--not absolute value--is greater than those
-    // of the other two.
+    // value of S, which must always be positive, and is therefore
+    // based on the diagonal whose actual value--not absolute
+    // value--is greater than those of the other two.
 
 
     // We already know that m00 + m11 + m22 <= 0 (because we are here
     // We already know that m00 + m11 + m22 <= 0 (because we are here
     // in the harder case).
     // in the harder case).