@srsergio/taptapp-ar 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -132,11 +132,11 @@ class SimpleAR {
|
|
|
132
132
|
if (!this.filters[targetIndex]) {
|
|
133
133
|
this.filters[targetIndex] = new OneEuroFilter({ minCutOff: 0.1, beta: 0.01 });
|
|
134
134
|
}
|
|
135
|
-
// Flatten
|
|
135
|
+
// Flatten mVT for filtering (3x4 matrix = 12 values)
|
|
136
136
|
const flatMVT = [
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
mVT[0][0], mVT[0][1], mVT[0][2], mVT[0][3],
|
|
138
|
+
mVT[1][0], mVT[1][1], mVT[1][2], mVT[1][3],
|
|
139
|
+
mVT[2][0], mVT[2][1], mVT[2][2], mVT[2][3]
|
|
140
140
|
];
|
|
141
141
|
const smoothedFlat = this.filters[targetIndex].filter(Date.now(), flatMVT);
|
|
142
142
|
const smoothedMVT = [
|
package/package.json
CHANGED
|
@@ -157,11 +157,11 @@ class SimpleAR {
|
|
|
157
157
|
this.filters[targetIndex] = new OneEuroFilter({ minCutOff: 0.1, beta: 0.01 });
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
// Flatten
|
|
160
|
+
// Flatten mVT for filtering (3x4 matrix = 12 values)
|
|
161
161
|
const flatMVT = [
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
mVT[0][0], mVT[0][1], mVT[0][2], mVT[0][3],
|
|
163
|
+
mVT[1][0], mVT[1][1], mVT[1][2], mVT[1][3],
|
|
164
|
+
mVT[2][0], mVT[2][1], mVT[2][2], mVT[2][3]
|
|
165
165
|
];
|
|
166
166
|
const smoothedFlat = this.filters[targetIndex].filter(Date.now(), flatMVT);
|
|
167
167
|
const smoothedMVT = [
|