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

1 2 3 4 5 6 7 8 910

  /external/jmonkeyengine/engine/src/core/com/jme3/effect/influencers/
ParticleInfluencer.java 10 * An interface that defines the methods to affect initial velocity of the particles.
32 * Set the initial velocity a particle is spawned with,
33 * the initial velocity given in the parameter will be varied according
34 * to the velocity variation set in {@link ParticleEmitter#setVelocityVariation(float) }.
35 * A particle will move toward its velocity unless it is effected by the
41 * This method returns the initial velocity.
42 * @return the initial velocity
48 * Set the variation by which the initial velocity
51 * the velocity given in {@link ParticleEmitter#setStartVel(com.jme3.math.Vector3f) },
52 * and 1 means particles are to spawn with a completely random velocity
    [all...]
NewtonianParticleInfluencer.java 14 * This influencer calculates initial velocity with the use of the emitter's shape.
27 * Constructor. Sets velocity variation to 0.0f.
35 emitterShape.getRandomPointAndNormal(particle.position, particle.velocity);
36 // influencing the particle's velocity
38 particle.velocity.multLocal(normalVelocity);
40 // calculating surface tangent (velocity contains the 'normal' value)
41 temp.set(particle.velocity.z * surfaceTangentFactor, particle.velocity.y * surfaceTangentFactor, -particle.velocity.x * surfaceTangentFactor);
44 m.fromAngleNormalAxis(FastMath.PI * surfaceTangentRotation, particle.velocity);
    [all...]
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/jmonkeyengine/engine/src/core/com/jme3/audio/
AudioParam.java 11 Velocity,
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);
  /external/replicaisland/src/com/replica/replicaisland/
Interpolator.java 20 * Helper class for interpolating velocity over time given a target velocity and acceleration.
21 * The current velocity will be accelerated towards the target until the target is reached.
23 * the target velocity.
35 // Rather than simply interpolating acceleration and velocity for each time step
36 // (as in, position += (velocity * time); velocity += (acceleration * time);),
37 // we actually perform the work needed to calculate the integral of velocity with respect to
40 // The integral of velocity is:
49 // change in position = velocity * time + (0.5 * acceleration * (time^2)
    [all...]
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...]
  /external/quake/quake/src/QW/client/
pmove.c 124 VectorCopy (pmove.velocity, original_velocity);
125 VectorCopy (pmove.velocity, primal_velocity);
133 end[i] = pmove.origin[i] + time_left * pmove.velocity[i];
139 VectorCopy (vec3_origin, pmove.velocity);
170 VectorCopy (vec3_origin, pmove.velocity);
182 PM_ClipVelocity (original_velocity, planes[i], pmove.velocity, 1);
186 if (DotProduct (pmove.velocity, planes[j]) < 0)
200 // Con_Printf ("clip velocity, numplanes == %i\n",numplanes);
201 VectorCopy (vec3_origin, pmove.velocity);
205 d = DotProduct (dir, pmove.velocity);
    [all...]
  /frameworks/base/core/java/android/view/
VelocityTracker.java 22 * Helper for tracking the velocity of touch events, for implementing
27 * {@link #addMovement(MotionEvent)}. When you want to determine the velocity call
29 * and {@link #getYVelocity(int)} to retrieve the velocity for each pointer id.
50 * Retrieve a new VelocityTracker object to watch the velocity of a
63 * Obtains a velocity tracker with the specified strategy.
67 * @return The velocity tracker.
107 * Reset the velocity tracker back to its initial state.
131 * velocity of Float.MAX_VALUE.
140 * Compute the current velocity based on the points that have been
141 * collected. Only call this when you actually want to retrieve velocity
    [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
  /frameworks/base/docs/html/training/gestures/
movement.jd 17 <li><a href="#velocity">Track Velocity</a></li>
81 <li>The velocity of the pointer as it moves across the touch screen.</li>
87 <h2 id="velocity">Track Velocity</h2>
89 <p> You could have a movement-based gesture that is simply based on the distance and/or direction the pointer traveled. But velocity often is a
91 whether the gesture occurred. To make velocity calculation easier, Android
96 android.view.VelocityTracker} helps you track the velocity of touch events. This
97 is useful for gestures in which velocity is part of the criteria for the
105 private static final String DEBUG_TAG = "Velocity";
    [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...]
  /external/jmonkeyengine/engine/src/core/com/jme3/collision/
MotionAllowedListener.java 40 * Check if motion allowed. Modify position and velocity vectors
44 * @param velocity
46 public void checkMotionAllowed(Vector3f position, Vector3f velocity);
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...]
  /frameworks/base/include/androidfw/
VelocityTracker.h 29 * Calculates the velocity of pointer movements over time.
64 // Creates a velocity tracker using the specified strategy.
70 // Resets the velocity tracker state.
73 // Resets the velocity tracker state for specific pointers.
88 // Gets the velocity of the specified pointer id in position units per second.
89 // Returns false and sets the velocity components to zero if there is
119 * Implements a particular velocity tracker algorithm.
137 * Velocity tracker algorithm based on least-squares linear regression.
195 * Velocity tracker algorithm that uses an IIR filter.
230 * Velocity tracker strategy used prior to ICS
    [all...]
  /frameworks/support/v4/java/android/support/v4/widget/
EdgeEffectCompat.java 51 public boolean onAbsorb(Object edgeEffect, int velocity);
81 public boolean onAbsorb(Object edgeEffect, int velocity) {
115 public boolean onAbsorb(Object edgeEffect, int velocity) {
116 return EdgeEffectCompatIcs.onAbsorb(edgeEffect, velocity);
193 * Call when the effect absorbs an impact at the given velocity.
200 * @param velocity Velocity at impact in pixels per second.
203 public boolean onAbsorb(int velocity) {
204 return IMPL.onAbsorb(mEdgeEffect, velocity);
  /frameworks/base/core/java/android/widget/
OverScroller.java 85 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value
102 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value
171 * Returns the absolute value of the current velocity.
173 * @return The original velocity less the deceleration, norm of the X and Y velocity vector.
408 * depend on the initial velocity of the fling.
412 * @param velocityX Initial velocity of the fling (X) measured in pixels per
414 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
550 // Initial velocity
553 // Current velocity
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
OverScroller.java 87 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value
104 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value
173 * Returns the absolute value of the current velocity.
175 * @return The original velocity less the deceleration, norm of the X and Y velocity vector.
410 * depend on the initial velocity of the fling.
414 * @param velocityX Initial velocity of the fling (X) measured in pixels per
416 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
552 // Initial velocity
555 // Current velocity
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
SwipeHelper.java 270 * @param velocity The desired pixels/second speed at which the view should move
272 public void dismissChild(final View view, float velocity) {
277 if (velocity < 0
278 || (velocity == 0 && getTranslation(animView) < 0)
280 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y)) {
286 if (velocity != 0) {
289 .abs(velocity)));
312 public void snapChild(final View view, float velocity) {
372 float velocity = getVelocity(mVelocityTracker); local
378 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocity) &
    [all...]
  /external/quake/quake/src/WinQuake/
sv_user.cpp 38 float *velocity; variable
130 vel = velocity;
179 VectorSubtract (wishvel, velocity, pushvec);
187 velocity[i] += accelspeed*pushvec[i];
195 currentspeed = DotProduct (velocity, wishdir);
204 velocity[i] += accelspeed*wishdir[i];
215 currentspeed = DotProduct (velocity, wishveloc);
225 velocity[i] += accelspeed*wishveloc[i];
277 speed = Length (velocity);
283 VectorScale (velocity, newspeed/speed, velocity)
    [all...]
sv_phys.cpp 95 // bound velocity
99 if (IS_NAN(ent->u.v.velocity[i]))
101 Con_Printf ("Got a NaN velocity on %s\n", pr_strings + ent->u.v.classname);
102 ent->u.v.velocity[i] = 0;
109 if (ent->u.v.velocity[i] > sv_maxvelocity.value)
110 ent->u.v.velocity[i] = sv_maxvelocity.value;
111 else if (ent->u.v.velocity[i] < -sv_maxvelocity.value)
112 ent->u.v.velocity[i] = -sv_maxvelocity.value;
221 Returns the clipflags if the velocity was modified (hit something solid)
246 VectorCopy (ent->u.v.velocity, original_velocity)
    [all...]
  /external/webkit/Source/WebCore/platform/
ScrollAnimatorWin.cpp 90 // Calculate the animation velocity.
103 // the desired velocity to exactly this rate, smooth scrolling will neither
112 // v = The steady-state velocity,
129 // will be requested. If we set the target velocity based on how far away
132 // velocity needed to stay smoothly in sync with the user's actions; for
137 // reached a velocity close to the steady-state velocity, we're likely to
157 // k = The velocity trim constant given below
203 // velocity. Choosing a larger value would produce a more pronounced
250 // velocity
    [all...]
  /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/DeskClock/src/com/android/deskclock/widget/swipeablelistview/
SwipeHelper.java 290 * @param velocity The desired pixels/second speed at which the view should
293 private void dismissChild(final View view, float velocity) {
296 float newPos = determinePos(animView, velocity);
297 int duration = determineDuration(animView, newPos, velocity);
320 private int determineDuration(View animView, float newPos, float velocity) {
322 if (velocity != 0) {
326 .abs(velocity)));
333 private float determinePos(View animView, float velocity) {
335 if (velocity < 0 || (velocity == 0 && animView.getTranslationX() < 0
430 float velocity = getVelocity(mVelocityTracker); local
    [all...]
  /external/quake/quake/src/QW/server/
sv_phys.c 95 // bound velocity
99 if (IS_NAN(ent->v.velocity[i]))
101 Con_Printf ("Got a NaN velocity on %s\n", PR_GetString(ent->v.classname));
102 ent->v.velocity[i] = 0;
109 if (ent->v.velocity[i] > sv_maxvelocity.value)
110 ent->v.velocity[i] = sv_maxvelocity.value;
111 else if (ent->v.velocity[i] < -sv_maxvelocity.value)
112 ent->v.velocity[i] = -sv_maxvelocity.value;
230 Returns the clipflags if the velocity was modified (hit something solid)
255 VectorCopy (ent->v.velocity, original_velocity)
    [all...]

Completed in 1161 milliseconds

1 2 3 4 5 6 7 8 910