HomeSort by relevance Sort by last modified time
    Searched defs:velocity (Results 1 - 25 of 75) sorted by null

1 2 3

  /external/chromium_org/native_client_sdk/src/examples/demo/flock/
goose.h 13 // A Goose. Each goose has a location and a velocity. Implements the
19 // Initialize a Goose at location (0, 0) no velocity.
22 // Initialize a Goose at the given location with the specified velocity.
23 Goose(const Vector2& location, const Vector2& velocity);
27 // by integrating acceleration and velocity.
66 Vector2 velocity() const { function in class:Goose
90 // is the average velocity of the neighbours. Only consider geese that are
  /external/chromium_org/content/browser/renderer_host/
smooth_scroll_calculator.cc 19 double velocity = 10 / desired_interval.InMillisecondsF(); local
21 position_delta = velocity * time_delta;
  /external/chromium_org/webkit/child/
touch_fling_gesture_curve.cc 31 inline double velocity(double t, float* p) { function in namespace:__anon17222
47 // curve, which starts at a large velocity and smoothly decreases to
48 // zero. For a given input velocity, we find where on the curve this
49 // velocity occurs, and start the animation at this point---denoted by
53 // that scales with input velocity, as faster initial velocities start
57 // Since the starting velocity is implicitly determined by our starting
62 // velocities that lie outside the max velocity are constrained to start
67 // position/velocity estimates outside this range are undefined.
93 // Curve ends when velocity reaches zero.
102 // velocity, or else bisection search may fail
    [all...]
fling_animator_impl_android.cc 40 void FlingAnimatorImpl::StartFling(const gfx::PointF& velocity)
46 DCHECK(velocity.x() || velocity.y());
52 last_velocity_ = velocity;
58 static_cast<int>(velocity.x()),
59 static_cast<int>(velocity.y()),
95 // vector velocity.
116 // Currently, the OverScroller only provides the velocity magnitude; use the
117 // angle of the scroll delta to yield approximate x and y velocity components.
118 // TODO(jdduke): Remove this when we can properly poll OverScroller velocity
123 float velocity = GetCurrentVelocity(); local
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/effect/
Particle.java 46 * Particle velocity.
48 public final Vector3f velocity = new Vector3f(); field in class:Particle
  /external/chromium_org/third_party/WebKit/Source/modules/webaudio/
AudioListener.h 66 // Velocity
68 void setVelocity(const FloatPoint3D &velocity) { m_velocity = velocity; }
69 const FloatPoint3D& velocity() const { return m_velocity; } function in class:WebCore::AudioListener
PannerNode.h 94 // Velocity
95 FloatPoint3D velocity() const { return m_velocity; } function in class:WebCore::PannerNode
  /external/jmonkeyengine/engine/src/core/com/jme3/audio/
Listener.java 41 private Vector3f velocity; field in class:Listener
48 velocity = new Vector3f();
54 velocity = source.velocity.clone();
82 return velocity;
109 public void setVelocity(Vector3f velocity) {
110 this.velocity.set(velocity);
112 renderer.updateListenerParam(this, ListenerParam.Velocity);
AudioNode.java 57 * or velocity does not influence how it is played.
75 protected Vector3f velocity = new Vector3f(); field in class:AudioNode
461 * @return The velocity of the audio node.
466 return velocity;
470 * Set the velocity of the audio node. The velocity is expected
473 * @param velocity The velocity to set.
476 public void setVelocity(Vector3f velocity) {
477 this.velocity.set(velocity)
    [all...]
  /external/sonivox/arm-fm-22k/lib_src/
eas_otadata.h 74 EAS_U8 velocity; /* current volume */ member in struct:__anon28063
eas_imelody.c 876 EAS_U8 velocity; local
889 velocity = (EAS_U8) (pData->volume ? pData->volume * IMELODY_VEL_MUL + IMELODY_VEL_OFS : 0);
893 VMStartNote(pEASData->pVoiceMgr, pData->pSynth, IMELODY_CHANNEL, pData->note, velocity);
    [all...]
  /external/sonivox/arm-hybrid-22k/lib_src/
eas_otadata.h 74 EAS_U8 velocity; /* current volume */ member in struct:__anon28113
eas_imelody.c 876 EAS_U8 velocity; local
889 velocity = (EAS_U8) (pData->volume ? pData->volume * IMELODY_VEL_MUL + IMELODY_VEL_OFS : 0);
893 VMStartNote(pEASData->pVoiceMgr, pData->pSynth, IMELODY_CHANNEL, pData->note, velocity);
    [all...]
  /external/sonivox/arm-wt-22k/lib_src/
eas_otadata.h 74 EAS_U8 velocity; /* current volume */ member in struct:__anon28165
eas_imelody.c 885 EAS_U8 velocity; local
898 velocity = (EAS_U8) (pData->volume ? pData->volume * IMELODY_VEL_MUL + IMELODY_VEL_OFS : 0);
902 VMStartNote(pEASData->pVoiceMgr, pData->pSynth, IMELODY_CHANNEL, pData->note, velocity);
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/collision/
SweepSphere.java 45 private Vector3f velocity = new Vector3f(); field in class:SweepSphere
86 return velocity;
89 public void setVelocity(Vector3f velocity) {
90 this.velocity.set(velocity);
146 // A = velocity * velocity
147 // B = 2 * (velocity . (center - vertex));
203 // Vector3f sVelocity = velocity.mult(invDim);
205 velocity.mult(invDim, sVelocity)
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/effect/influencers/
DefaultParticleInfluencer.java 15 * The direction may vary a little if the velocity variation is non zero.
23 /** The initial velocity of the particles. */
25 /** The velocity's variation of the particles. */
35 * This method applies the variation to the particle with already set velocity.
40 particle.velocity.set(startVelocity);
45 particle.velocity.interpolate(temp, velocityVariation);
  /external/qemu/distrib/sdl-1.2.15/test/
testsprite.c 65 SDL_Rect area, *position, *velocity; local
76 velocity = &velocities[i];
77 position->x += velocity->x;
79 velocity->x = -velocity->x;
80 position->x += velocity->x;
82 position->y += velocity->y;
84 velocity->y = -velocity->y;
85 position->y += velocity->y
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
FlingScroller.java 25 // (1) The velocity does not change because of min/max limit.
32 // The fling duration (in milliseconds) when velocity is 1 pixel/second
85 double velocity = Math.hypot(velocityX, velocityY); local
86 mSinAngle = velocityY / velocity;
87 mCosAngle = velocityX / velocity;
90 // velocity formula: v(t) = d * (e - s) * (1 - t / T) ^ (d - 1) / T
97 * Math.pow(Math.abs(velocity), 1.0 / (DECELERATED_FACTOR - 1)));
101 velocity * mDuration / DECELERATED_FACTOR / 1000);
137 // velocity formula: v(t) = d * (e - s) * (1 - t / T) ^ (d - 1) / T
  /external/chromium_org/third_party/WebKit/Source/web/tests/
ScrollAnimatorNoneTest.cpp 280 // If we're getting near the finish, the desired velocity can decrease since the time left gets increased.
361 double velocity = delta / step; local
362 double velocityDelta = velocity - oldVelocity;
366 oldVelocity = velocity;
383 double velocity = delta / step; local
384 double velocityDelta = velocity - oldVelocity;
388 oldVelocity = velocity;
    [all...]
  /external/replicaisland/src/com/replica/replicaisland/
NPCAnimationComponent.java 125 final Vector2 velocity = parentObject.getVelocity(); local
126 if (velocity.y < FALL_SPEED_THRESHOLD) {
137 final Vector2 velocity = parentObject.getVelocity(); local
138 if (velocity.y > JUMP_SPEED_THRESHOLD) {
148 final Vector2 velocity = parentObject.getVelocity(); local
149 if (Math.abs(velocity.x) >= RUN_SPEED_THRESHOLD) {
158 final Vector2 velocity = parentObject.getVelocity(); local
161 if ((velocity.x < 0.0f && parentObject.touchingLeftWall())
162 || (velocity.x > 0.0f && parentObject.touchingRightWall())) {
193 final Vector2 velocity = parentObject.getVelocity() local
219 final Vector2 velocity = parentObject.getVelocity(); local
256 final Vector2 velocity = parentObject.getVelocity(); local
292 final Vector2 velocity = parentObject.getVelocity(); local
303 final Vector2 velocity = parentObject.getVelocity(); local
321 final Vector2 velocity = parentObject.getVelocity(); local
    [all...]
  /frameworks/base/core/jni/
android_view_VelocityTracker.cpp 32 // Special constant to request the velocity of the active pointer.
56 struct Velocity {
63 Velocity mCalculatedVelocity[MAX_POINTERS];
104 Velocity& velocity = mCalculatedVelocity[index]; local
105 velocity.vx = vx;
106 velocity.vy = vy;
118 const Velocity& velocity = mCalculatedVelocity[index]; local
119 vx = velocity.vx
    [all...]
  /frameworks/base/core/java/android/widget/
Scroller.java 255 * Returns the current velocity.
257 * @return The original velocity less the deceleration. Result may be
414 * depend on the initial velocity of the fling.
418 * @param velocityX Initial velocity of the fling (X) measured in pixels per
420 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
456 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); local
458 mVelocity = velocity;
459 mDuration = getSplineFlingDuration(velocity);
464 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity;
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
SwipeHelper.java 269 * @param velocity The desired pixels/second speed at which the view should move
271 public void dismissChild(final View view, float velocity) {
276 if (velocity < 0
277 || (velocity == 0 && getTranslation(animView) < 0)
279 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y)) {
285 if (velocity != 0) {
288 .abs(velocity)));
311 public void snapChild(final View view, float velocity) {
371 float velocity = getVelocity(mVelocityTracker); local
377 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocity) &
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
Scroller.java 199 * Returns the current velocity.
201 * @return The original velocity less the deceleration. Result may be
350 * depend on the initial velocity of the fling.
354 * @param velocityX Initial velocity of the fling (X) measured in pixels per
356 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
392 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); local
394 mVelocity = velocity;
395 final double l = Math.log(START_TENSION * velocity / ALPHA);
401 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity;
    [all...]

Completed in 2808 milliseconds

1 2 3