/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...] |
/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);
|
/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...] |
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...] |
/external/jmonkeyengine/engine/src/core/com/jme3/effect/influencers/ |
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...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
FlingAnimationUtils.java | 73 * @param velocity the current velocity of the motion 75 public void apply(Animator animator, float currValue, float endValue, float velocity) { 76 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 86 * @param velocity the current velocity of the motion 89 float velocity) { 90 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 100 * @param velocity the current velocity of the motio [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
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
SmoothPagedView.java | 119 protected void snapToPageWithVelocity(int whichPage, int velocity) { 121 super.snapToPageWithVelocity(whichPage, velocity); 127 private void snapToPageWithVelocity(int whichPage, int velocity, boolean settle) { 147 velocity = Math.abs(velocity); 148 if (velocity > 0) { 149 duration += (duration / (velocity / mBaseLineFlingVelocity)) * mFlingVelocityInfluence;
|
/developers/samples/android/common/src/java/com/example/android/common/midi/synth/ |
SawVoice.java | 36 public void noteOn(int noteIndex, int velocity) { 37 super.noteOn(noteIndex, velocity);
|
SynthVoice.java | 33 public void noteOn(int noteIndex, int velocity) { 36 setAmplitude(velocity / 128.0f);
|
/frameworks/support/v4/ics/android/support/v4/widget/ |
EdgeEffectCompatIcs.java | 56 public static boolean onAbsorb(Object edgeEffect, int velocity) { 57 ((EdgeEffect) edgeEffect).onAbsorb(velocity);
|
/frameworks/base/core/java/android/widget/ |
OverScroller.java | 88 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 105 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 178 * Returns the absolute value of the current velocity. 180 * @return The original velocity less the deceleration, norm of the X and Y velocity vector. 406 * depend on the initial velocity of the fling. 410 * @param velocityX Initial velocity of the fling (X) measured in pixels per 412 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 548 // Initial velocity 551 // Current velocity [all...] |
Scroller.java | 249 * Returns the current velocity. 251 * @return The original velocity less the deceleration. Result may be 402 * depend on the initial velocity of the fling. 406 * @param velocityX Initial velocity of the fling (X) measured in pixels per 408 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 444 float velocity = (float) Math.hypot(velocityX, velocityY); local 446 mVelocity = velocity; 447 mDuration = getSplineFlingDuration(velocity); 452 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
OverScrollerSGV.java | 88 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 105 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 174 * Returns the absolute value of the current velocity. 176 * @return The original velocity less the deceleration, norm of the X and Y velocity vector. 409 * depend on the initial velocity of the fling. 413 * @param velocityX Initial velocity of the fling (X) measured in pixels per 415 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 551 // Initial velocity 554 // Current velocity [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
OverScroller.java | 86 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 103 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 172 * Returns the absolute value of the current velocity. 174 * @return The original velocity less the deceleration, norm of the X and Y velocity vector. 407 * depend on the initial velocity of the fling. 411 * @param velocityX Initial velocity of the fling (X) measured in pixels per 413 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 549 // Initial velocity 552 // Current 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
|
Paper.java | 45 public void edgeReached(float velocity) { 46 velocity /= mWidth; // make it relative to width 47 if (velocity < 0) { 48 mAnimationRight.onAbsorb(-velocity); 50 mAnimationLeft.onAbsorb(velocity); 145 public void onAbsorb(float velocity) { 146 float finish = Utils.clamp(mValue + velocity * VELOCITY_FACTOR,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
SwipeHelper.java | 218 * @param velocity The desired pixels/second speed at which the view should move 220 private void dismissChild(final View view, float velocity) { 223 if (velocity < 0 224 || (velocity == 0 && getTranslation(view) < 0) 226 || (velocity == 0 && getTranslation(view) == 0 && mSwipeDirection == Y)) { 232 if (velocity != 0) { 235 1000f / Math.abs(velocity))); 263 private void snapChild(final View view, float velocity) { 353 float velocity = getVelocity(velocityTracker); local 360 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocity) & [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
EdgeEffectCompat.java | 53 public boolean onAbsorb(Object edgeEffect, int velocity); 84 public boolean onAbsorb(Object edgeEffect, int velocity) { 122 public boolean onAbsorb(Object edgeEffect, int velocity) { 123 return EdgeEffectCompatIcs.onAbsorb(edgeEffect, velocity); 229 * Call when the effect absorbs an impact at the given velocity. 236 * @param velocity Velocity at impact in pixels per second. 239 public boolean onAbsorb(int velocity) { 240 return IMPL.onAbsorb(mEdgeEffect, velocity);
|
/external/sonivox/arm-fm-22k/lib_src/ |
eas_otadata.h | 74 EAS_U8 velocity; /* current volume */ member in struct:__anon18520
|
/external/sonivox/arm-hybrid-22k/lib_src/ |
eas_otadata.h | 74 EAS_U8 velocity; /* current volume */ member in struct:__anon18570
|
/external/sonivox/arm-wt-22k/lib_src/ |
eas_otadata.h | 74 EAS_U8 velocity; /* current volume */ member in struct:__anon18622
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
SwipeHelper.java | 295 * @param velocity The desired pixels/second speed at which the view should move 297 public void dismissChild(final View view, float velocity) { 298 dismissChild(view, velocity, null, 0, false, 0); 303 * @param velocity The desired pixels/second speed at which the view should move 309 public void dismissChild(final View view, float velocity, final Runnable endAction, 316 if (velocity < 0 317 || (velocity == 0 && getTranslation(animView) < 0) 319 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y) 321 || (velocity == 0 && getTranslation(animView) == 0 && isLayoutRtl)) { 329 if (velocity != 0) 443 float velocity = getVelocity(mVelocityTracker); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
SwipeHelper.java | 263 * @param velocity The desired pixels/second speed at which the view should 266 private void dismissChild(final SwipeableItemView view, float velocity) { 269 float newPos = determinePos(animView, velocity); 270 int duration = determineDuration(animView, newPos, velocity); 293 private static int determineDuration(View animView, float newPos, float velocity) { 295 if (velocity != 0) { 299 .abs(velocity))); 306 private float determinePos(View animView, float velocity) { 308 if (velocity < 0 || (velocity == 0 && animView.getTranslationX() < 0 406 float velocity = getVelocity(mVelocityTracker); local [all...] |