Home
last modified time | relevance | path

Searched refs:velocity (Results 1 – 25 of 125) sorted by relevance

12345

/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestspriteminimal.c99 SDL_Rect *position, *velocity; in MoveSprites() local
108 velocity = &velocities[i]; in MoveSprites()
109 position->x += velocity->x; in MoveSprites()
111 velocity->x = -velocity->x; in MoveSprites()
112 position->x += velocity->x; in MoveSprites()
114 position->y += velocity->y; in MoveSprites()
116 velocity->y = -velocity->y; in MoveSprites()
117 position->y += velocity->y; in MoveSprites()
Dtestnative.c89 SDL_Rect *position, *velocity; in MoveSprites() local
102 velocity = &velocities[i]; in MoveSprites()
103 position->x += velocity->x; in MoveSprites()
105 velocity->x = -velocity->x; in MoveSprites()
106 position->x += velocity->x; in MoveSprites()
108 position->y += velocity->y; in MoveSprites()
110 velocity->y = -velocity->y; in MoveSprites()
111 position->y += velocity->y; in MoveSprites()
Dtestsprite2.c115 SDL_Rect *position, *velocity; in MoveSprites() local
203 velocity = &velocities[i]; in MoveSprites()
204 position->x += velocity->x; in MoveSprites()
206 velocity->x = -velocity->x; in MoveSprites()
207 position->x += velocity->x; in MoveSprites()
209 position->y += velocity->y; in MoveSprites()
211 velocity->y = -velocity->y; in MoveSprites()
212 position->y += velocity->y; in MoveSprites()
/third_party/boost/boost/units/systems/si/
Dvelocity.hpp23 typedef unit<velocity_dimension,si::system> velocity; typedef
25 BOOST_UNITS_STATIC_CONSTANT(meter_per_second,velocity);
26 BOOST_UNITS_STATIC_CONSTANT(meters_per_second,velocity);
27 BOOST_UNITS_STATIC_CONSTANT(metre_per_second,velocity);
28 BOOST_UNITS_STATIC_CONSTANT(metres_per_second,velocity);
/third_party/boost/boost/units/systems/cgs/
Dvelocity.hpp23 typedef unit<velocity_dimension,cgs::system> velocity; typedef
25 BOOST_UNITS_STATIC_CONSTANT(centimeter_per_second,velocity);
26 BOOST_UNITS_STATIC_CONSTANT(centimeters_per_second,velocity);
27 BOOST_UNITS_STATIC_CONSTANT(centimetre_per_second,velocity);
28 BOOST_UNITS_STATIC_CONSTANT(centimetres_per_second,velocity);
/third_party/flutter/flutter/packages/flutter/lib/src/gestures/
Dvelocity_tracker.dart13 /// A velocity in two dimensions.
15 /// Creates a velocity.
22 /// A velocity that isn't moving at all.
25 /// The number of pixels per second of velocity in the x and y directions.
28 /// Return the negation of a velocity.
43 /// Return a velocity whose magnitude has been clamped to [minValue]
79 /// A two dimensional velocity estimate.
82 /// estimate's [confidence] measures how well the velocity tracker's position
84 /// first and last position sample used to compute the velocity, and [offset]
90 /// * [Velocity], which encapsulates (just) a velocity vector and provides some
[all …]
Dscale.dart156 /// The [velocity] argument must not be null.
157 ScaleEndDetails({ this.velocity = Velocity.zero })
158 : assert(velocity != null);
160 /// The velocity of the last pointer to be lifted off of the screen.
161 final Velocity velocity;
164 String toString() => 'ScaleEndDetails(velocity: $velocity)';
178 bool _isFlingGesture(Velocity velocity) {
179 assert(velocity != null);
180 final double speedSquared = velocity.pixelsPerSecond.distanceSquared;
402 Velocity velocity = tracker.getVelocity();
[all …]
Ddrag_details.dart210 /// The [velocity] argument must not be null.
212 this.velocity = Velocity.zero,
214 }) : assert(velocity != null),
216 || primaryVelocity == velocity.pixelsPerSecond.dx
217 || primaryVelocity == velocity.pixelsPerSecond.dy);
219 /// The velocity the pointer was moving when it stopped contacting the screen.
222 final Velocity velocity;
224 /// The velocity the pointer was moving along the primary axis when it stopped
229 /// [velocity] along the primary axis (e.g., horizontal or vertical,
237 String toString() => '$runtimeType($velocity)';
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dscroll_simulation.dart19 /// The position and velocity arguments must use the same units as will be
33 @required double velocity,
39 assert(velocity != null),
46 _springSimulation = _underscrollSimulation(position, velocity);
49 _springSimulation = _overscrollSimulation(position, velocity);
52 _frictionSimulation = FrictionSimulation(0.135, position, velocity);
54 if (velocity > 0.0 && finalX > trailingExtent) {
61 } else if (velocity < 0.0 && finalX < leadingExtent) {
75 /// The maximum velocity that can be transferred from the inertia of a ballistic
145 @required this.velocity,
[all …]
Dscroll_activity.dart52 /// given velocity.
53 void goBallistic(double velocity);
122 /// If applicable, the velocity at which the scroll offset is currently
125 double get velocity;
159 double get velocity => 0.0;
200 double get velocity => 0.0;
291 /// Determines whether to lose the existing incoming velocity when starting
378 // We negate the velocity here because if the touch is moving downwards,
381 double velocity = -details.primaryVelocity;
383 velocity = -velocity;
[all …]
Dscroll_physics.dart32 /// velocity are used as the initial conditions for the particle in the
179 /// position with the given velocity.
190 Simulation createBallisticSimulation(ScrollMetrics position, double velocity) {
193 return parent.createBallisticSimulation(position, velocity);
209velocity: 1.0 / (0.050 * WidgetsBinding.instance.window.devicePixelRatio), // logical pixels per s…
224 /// * [VelocityTracker.getVelocityEstimate], which computes the velocity
228 /// The minimum velocity for an input pointer drag to be considered a
232 /// velocity along the scrolling axis.
236 /// * [VelocityTracker.getVelocityEstimate], which computes the velocity
240 /// Scroll fling velocity magnitudes will be clamped to this value.
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/physics/
Dfriction_simulation.dart14 /// The simulation ends when the velocity of the particle drops to zero (within
15 /// the current velocity [tolerance]).
19 /// length units as used for [x]; and the initial velocity, in the same
20 /// velocity units as used for [dx].
24 double velocity, {
29 _v = velocity,
40 /// of the start velocity must be greater than the magnitude of the end
41 /// velocity, and the velocities must be in the direction appropriate for the
51 tolerance: Tolerance(velocity: endVelocity.abs()),
61 // through the specified start and end position/velocity values.
[all …]
Dtolerance.dart6 /// durations, and velocity differences to be considered equal.
8 /// Creates a [Tolerance] object. By default, the distance, time, and velocity
15 this.velocity = _epsilonDefault,
40 /// The units for the velocity tolerance must be the same as the units used
42 final double velocity;
45 String toString() => 'Tolerance(distance: ±$distance, time: ±$time, velocity: ±$velocity)';
Dgravity_simulation.dart26 /// 0.0, // starting velocity, pixels per second
44 /// simulation to be "done", which must be positive; and an initial velocity.
51 /// that must be used for the velocity and acceleration arguments: L/T and
52 /// L/T² respectively. The same units of velocity are used for the velocity
58 double velocity,
61 assert(velocity != null),
66 _v = velocity,
Dspring_simulation.dart82 /// distance, end distance, and initial velocity.
87 /// The units for the velocity are L/T, where L is the aforementioned
94 double velocity, {
97 _solution = _SpringSolution(spring, start - end, velocity),
118 nearZero(_solution.dx(time), tolerance.velocity);
129 /// distance, end distance, and initial velocity.
137 double velocity, {
139 }) : super(spring, start, end, velocity, tolerance: tolerance);
177 double velocity,
181 final double c2 = velocity / (r * distance);
[all …]
/third_party/libinput/src/
Dfilter-touchpad-x230.c65 double velocity; /* units/us */ member
89 void *data, double velocity, uint64_t time) in acceleration_profile() argument
91 return accel->profile(&accel->base, data, velocity, time); in acceleration_profile()
109 double velocity, in calculate_acceleration() argument
117 factor = acceleration_profile(accel, data, velocity, time); in calculate_acceleration()
121 (last_velocity + velocity) / 2, in calculate_acceleration()
140 double velocity; /* units/us */ in accelerator_filter_x230() local
154 velocity = trackers_velocity(&accel->trackers, time); in accelerator_filter_x230()
157 velocity, in accelerator_filter_x230()
160 accel->last_velocity = velocity; in accelerator_filter_x230()
Dfilter.c208 double velocity; in trackers_velocity() local
234 velocity = calculate_trackers_velocity(tracker, in trackers_velocity()
244 result = velocity; in trackers_velocity()
252 result = initial_velocity = velocity; in trackers_velocity()
255 velocity_diff = fabs(initial_velocity - velocity); in trackers_velocity()
259 result = velocity; in trackers_velocity()
282 double velocity, in calculate_acceleration_simpsons() argument
290 factor = profile(filter, data, velocity, time); in calculate_acceleration_simpsons()
293 (last_velocity + velocity) / 2, in calculate_acceleration_simpsons()
Dfilter-trackpoint.c50 double velocity, in trackpoint_accel_profile() argument
57 velocity = v_us2ms(velocity); /* make it units/ms */ in trackpoint_accel_profile()
67 factor = 10.06254 + (0.3 - 10.06254)/(1 + pow(velocity/0.9205459, 1.15363)); in trackpoint_accel_profile()
83 double velocity; in trackpoint_accelerator_filter() local
89 velocity = trackers_velocity(&accel_filter->trackers, time); in trackpoint_accelerator_filter()
91 f = trackpoint_accel_profile(filter, data, velocity, time); in trackpoint_accelerator_filter()
Dfilter-touchpad.c48 double velocity; /* units/us */ member
77 double velocity; /* units/us in device-native dpi*/ in calculate_acceleration_factor() local
81 velocity = trackers_velocity(&accel->trackers, time); in calculate_acceleration_factor()
85 velocity, in calculate_acceleration_factor()
88 accel->last_velocity = velocity; in calculate_acceleration_factor()
Dfilter-low-dpi.c51 double velocity; /* units/us */ member
112 double velocity; /* units/us in device-native dpi*/ in calculate_acceleration_factor() local
116 velocity = trackers_velocity(&accel->trackers, time); in calculate_acceleration_factor()
120 velocity, in calculate_acceleration_factor()
123 accel->last_velocity = velocity; in calculate_acceleration_factor()
Dfilter-mouse.c51 double velocity; /* units/us */ member
79 double velocity; /* units/us in device-native dpi*/ in calculate_acceleration_factor() local
83 velocity = trackers_velocity(&accel->trackers, time); in calculate_acceleration_factor()
87 velocity, in calculate_acceleration_factor()
90 accel->last_velocity = velocity; in calculate_acceleration_factor()
/third_party/flutter/flutter/packages/flutter/test/physics/
Dnewton_test.dart14 friction.tolerance = const Tolerance(velocity: 1.0);
33 // velocity and positions with drag = 0.025.
76 friction.tolerance = const Tolerance(velocity: 1.0);
145 crit.tolerance = const Tolerance(distance: 0.01, velocity: 0.01);
170 over.tolerance = const Tolerance(distance: 0.01, velocity: 0.01);
195 // Overshot with negative velocity
211 velocity: 800.0,
216 scroll.tolerance = const Tolerance(velocity: 0.5, distance: 0.1);
223 velocity: -800.0,
228 scroll2.tolerance = const Tolerance(velocity: 0.5, distance: 0.1);
[all …]
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dscroll_simulation_test.dart10 void checkInitialConditions(double position, double velocity) {
11 …pingScrollSimulation simulation = ClampingScrollSimulation(position: position, velocity: velocity);
13 expect(simulation.dx(0.0), moreOrLessEquals(velocity));
/third_party/boost/libs/units/test/
Dtest_output.cpp64 typedef boost::units::unit<boost::units::velocity_dimension, my_system> velocity; typedef
67 typedef boost::units::make_scaled_unit<velocity, boost::units::scale<10, boost::units::static_ratio…
179 BOOST_UNITS_TEST_OUTPUT(velocity(), "m s^-1"); in BOOST_AUTO_TEST_CASE()
201 BOOST_UNITS_TEST_OUTPUT(velocity(), "m s^-1"); in BOOST_AUTO_TEST_CASE()
224 BOOST_UNITS_TEST_OUTPUT(velocity(), "meter second^-1"); in BOOST_AUTO_TEST_CASE()
247 BOOST_UNITS_TEST_OUTPUT(1.5*velocity(), "1.5 m s^-1"); in BOOST_AUTO_TEST_CASE()
271 BOOST_UNITS_TEST_OUTPUT(1.5*velocity(), "1.5 m s^-1"); in BOOST_AUTO_TEST_CASE()
294 BOOST_UNITS_TEST_OUTPUT(1.5*velocity(), "1.5 meter second^-1"); in BOOST_AUTO_TEST_CASE()
341 BOOST_UNITS_TEST_OUTPUT(1.5*velocity(), "1.5 meter second^-1"); in BOOST_AUTO_TEST_CASE()
389 BOOST_UNITS_TEST_OUTPUT(1.5*velocity(), "1.5 m s^-1"); in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/flutter/flutter/packages/flutter/test/gestures/
Ddrag_test.dart329 testGesture('Clamp max velocity', (GestureTester tester) {
332 Velocity velocity;
335 velocity = details.velocity;
356 …expect(velocity.pixelsPerSecond.dx, inInclusiveRange(0.99 * kMaxFlingVelocity, kMaxFlingVelocity));
357 expect(velocity.pixelsPerSecond.dy, moreOrLessEquals(0.0));
358 expect(primaryVelocity, velocity.pixelsPerSecond.dx);
363 …testGesture('Synthesized pointer events are ignored for velocity tracking', (GestureTester tester)…
366 Velocity velocity;
368 velocity = details.velocity;
383 // horizontal velocity from 1 px/ms and introduced a slight vertical velocity.
[all …]

12345