Lines Matching refs:velocity
65 SimpleSmoothProfile(DeviceIntPtr dev, DeviceVelocityPtr vel, double velocity,
694 double velocity; in ProcessVelocityData2D() local
696 vel->last_velocity = vel->velocity; in ProcessVelocityData2D()
700 velocity = QueryTrackers(vel, time); in ProcessVelocityData2D()
702 DebugAccelF("velocity is %f\n", velocity); in ProcessVelocityData2D()
704 vel->velocity = velocity; in ProcessVelocityData2D()
705 return velocity == 0; in ProcessVelocityData2D()
754 double velocity, double threshold, double acc) in BasicComputeAcceleration() argument
759 result = vel->Profile(dev, vel, velocity, threshold, acc); in BasicComputeAcceleration()
778 if (vel->velocity <= 0) { in ComputeAcceleration()
786 if (vel->average_accel && vel->velocity != vel->last_velocity) { in ComputeAcceleration()
792 BasicComputeAcceleration(dev, vel, vel->velocity, threshold, acc); in ComputeAcceleration()
799 vel->velocity) / 2, in ComputeAcceleration()
804 vel->velocity, vel->last_velocity, result); in ComputeAcceleration()
808 vel->velocity, threshold, acc); in ComputeAcceleration()
810 vel->velocity, result); in ComputeAcceleration()
826 double velocity, double ignored, double acc) in PolynomialAccelerationProfile() argument
828 return pow(velocity, (acc - 1.0) * 0.5); in PolynomialAccelerationProfile()
838 double velocity, double threshold, double acc) in ClassicProfile() argument
841 return SimpleSmoothProfile(dev, vel, velocity, threshold, acc); in ClassicProfile()
844 return PolynomialAccelerationProfile(dev, vel, velocity, 0, acc); in ClassicProfile()
859 double velocity, double threshold, double acc) in PowerProfile() argument
865 if (velocity <= threshold) in PowerProfile()
867 vel_dist = velocity - threshold; in PowerProfile()
893 double velocity, double threshold, double acc) in SimpleSmoothProfile() argument
895 if (velocity < 1.0f) in SimpleSmoothProfile()
896 return CalcPenumbralGradient(0.5 + velocity * 0.5) * 2.0f - 1.0f; in SimpleSmoothProfile()
899 if (velocity <= threshold) in SimpleSmoothProfile()
901 velocity /= threshold; in SimpleSmoothProfile()
902 if (velocity >= acc) in SimpleSmoothProfile()
905 return 1.0f + (CalcPenumbralGradient(velocity / acc) * (acc - 1.0f)); in SimpleSmoothProfile()
915 double velocity, double threshold, double acc) in SmoothLinearProfile() argument
924 nv = (velocity - threshold) * acc * 0.5; in SmoothLinearProfile()
948 double velocity, double threshold, double acc) in SmoothLimitedProfile() argument
952 if (velocity >= threshold || threshold == 0.0) in SmoothLimitedProfile()
955 velocity /= threshold; /* should be [0..1[ now */ in SmoothLimitedProfile()
957 res = CalcPenumbralGradient(velocity) * (acc - vel->min_acceleration); in SmoothLimitedProfile()
965 double velocity, double threshold, double acc) in LinearProfile() argument
967 return acc * velocity; in LinearProfile()
972 DeviceVelocityPtr vel, double velocity, double threshold, double acc) in NoProfile() argument