Lines Matching defs:vector
134 tp->scroll.vector = zero;
364 struct phys_coords delta_mm, vector;
385 /* Old vector data "fades" over time. This is a two-part linear
402 /* Calculate windowed vector from delta + weighted historic data */
403 vector.x = (tp->scroll.vector.x * vector_decay) + delta_mm.x;
404 vector.y = (tp->scroll.vector.y * vector_decay) + delta_mm.y;
405 vector_length = hypot(vector.x, vector.y);
406 tp->scroll.vector = vector;
420 slope = (vector.x != 0) ? fabs(vector.y / vector.x) : INFINITY;
422 /* Ensure vector is big enough (in mm per EVENT_TIMEOUT) to be confident
461 /* If vector is big enough in a diagonal direction, always unlock