We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e358853 commit bde4482Copy full SHA for bde4482
1 file changed
src/ruis/widget/base/touch/flickable.cpp
@@ -253,9 +253,9 @@ ruis::vec2 flickable::calculate_touch_velocity_for_at_least_3_points_using_ols_m
253
// Ordinary Least Squares method fits quadratic curve y(t)=a*t^2+b*t+c to a set of n >= 3 points.
254
// Coefficients a, b and c can be found by solving the following system of linear equations
255
//
256
- // / sum(t^4) sum(t^3) sum(t^2) \ / a \ / sum(y * t^2) \
+ // | sum(t^4) sum(t^3) sum(t^2) | | a | | sum(y * t^2) |
257
// | sum(t^3) sum(t^2) sum(t) | * | b | = | sum(y * t) |
258
- // \ sum(t^2) sum(t) n / \ c / \ sum(y) /
+ // | sum(t^2) sum(t) n | | c | | sum(y) |
259
260
// The touch velocity is effectively v = dy/dt = 2*a*t + b
261
0 commit comments