ソースを参照

Add comment

customisations
alemart 10ヶ月前
コミット
ae3e0085ee
1個のファイルの変更2行の追加0行の削除
  1. 2
    0
      src/geometry/pose-filter.ts

+ 2
- 0
src/geometry/pose-filter.ts ファイルの表示

157
 
157
 
158
         // average *nearby* rotations
158
         // average *nearby* rotations
159
         // based on https://web.archive.org/web/20130514122622/http://wiki.unity3d.com/index.php/Averaging_Quaternions_and_Vectors
159
         // based on https://web.archive.org/web/20130514122622/http://wiki.unity3d.com/index.php/Averaging_Quaternions_and_Vectors
160
+        // reminder: a unit quaternion q may be expressed as
161
+        // cos t + u sin t, where 2t is a rotation angle and u is a rotation axis
160
         for(let i = 0; i < R; i++) {
162
         for(let i = 0; i < R; i++) {
161
             const qi = this._rotationSample[i];
163
             const qi = this._rotationSample[i];
162
             const w = 1 / R; //(R - (i - i%2)) / R;
164
             const w = 1 / R; //(R - (i - i%2)) / R;

読み込み中…
キャンセル
保存