Lines Matching defs:velocity

42  * 1) provide a sophisticated ballistic velocity estimate to improve
43 * the relation between velocity (of the device) and acceleration
54 * for a given velocity
66 SimpleSmoothProfile(DeviceIntPtr dev, DeviceVelocityPtr vel, float velocity,
279 * velocity scaling
486 * calc velocity for given tracker, with
487 * velocity scaling.
502 /* find the most plausible velocity. That is, the most distant
504 * or simply too much off initial velocity.
511 /* initial velocity: a low-offset, valid velocity */
527 * this heuristic avoids using the linear-motion velocity formula
543 /* set initial velocity and result */
550 /* we're in range with the initial velocity,
582 * Perform velocity approximation based on 2D 'mickeys' (mouse motion delta).
592 float velocity;
594 vel->last_velocity = vel->velocity;
598 velocity = QueryTrackers(vel, time);
600 vel->velocity = velocity;
601 return velocity == 0;
606 * constant-velocity response
644 * compute the acceleration for given velocity and enforce min_acceleartion
650 float velocity,
655 result = vel->Profile(dev, vel, velocity, threshold, acc);
674 if(vel->velocity <= 0){
677 * If we have no idea about device velocity, don't pretend it.
682 if(vel->average_accel && vel->velocity != vel->last_velocity){
684 * current and previous velocity.
688 dev, vel, vel->velocity, threshold, acc);
692 (vel->last_velocity + vel->velocity) / 2,
696 vel->velocity, vel->last_velocity, res);
700 vel->velocity, threshold, acc);
702 vel->velocity, res);
719 float velocity,
723 return pow(velocity, (acc - 1.0) * 0.5);
728 * returns acceleration for velocity.
735 float velocity,
742 velocity,
748 velocity,
767 float velocity,
775 if (velocity <= threshold)
777 vel_dist = velocity - threshold;
805 float velocity,
809 if(velocity < 1.0f)
810 return CalcPenumbralGradient(0.5 + velocity*0.5) * 2.0f - 1.0f;
813 if (velocity <= threshold)
815 velocity /= threshold;
816 if (velocity >= acc)
819 return 1.0f + (CalcPenumbralGradient(velocity/acc) * (acc - 1.0f));
831 float velocity,
842 nv = (velocity - threshold) * acc * 0.5f;
866 float velocity,
872 if(velocity >= threshold || threshold == 0.0f)
875 velocity /= threshold; /* should be [0..1[ now */
877 res = CalcPenumbralGradient(velocity) * (acc - vel->min_acceleration);
887 float velocity,
891 return acc * velocity;
898 float velocity,
1016 * This version employs a velocity approximation algorithm to