/external/replicaisland/src/com/replica/replicaisland/ |
SimplePhysicsComponent.java | 44 float velocityX = parentObject.getVelocity().x + impulse.x; 56 if ((parentObject.touchingRightWall() && velocityX > 0.0f) 57 || (parentObject.touchingLeftWall() && velocityX < 0.0f)){ 58 velocityX = -velocityX * mBounciness; 60 if (Utils.close(velocityX, 0.0f)) { 61 velocityX = 0.0f; 65 parentObject.getVelocity().set(velocityX, velocityY);
|
EnemyAnimationComponent.java | 65 final float velocityX = parentObject.getVelocity().x; 80 } else if (Math.abs(velocityX) > 0.0f) { 90 if (!Utils.close(velocityX, 0.0f)) { 91 if (velocityX < 0.0f && targetVelocityX < 0.0f) { 93 } else if (velocityX > 0.0f && targetVelocityX > 0.0f) { 101 } else if (Math.abs(velocityX) == 0.0f) {
|
AnimationComponent.java | 111 final float velocityX = parentObject.getVelocity().x; 217 if (Utils.close(velocityX, 0.0f, 30.0f)) { 219 } else if (Math.abs(velocityX) > 300.0f) { 240 if (Math.abs(velocityX) < 100.0f && velocityY > 10.0f) { 242 } else if (Math.abs(velocityX) > 300.0f) { 249 if (Utils.close(velocityX, 0.0f, 1.0f)) { 251 } else if (Math.abs(velocityX) > 300.0f) { 272 if (velocityX > 0.0f) { 274 } else if (velocityX < 0.0f) {
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
PlatformGestureEvent.h | 46 PlatformGestureEvent(Type type, const IntPoint& position, const IntPoint& globalPosition, const IntSize& area, double timestamp, bool shiftKey, bool ctrlKey, bool altKey, bool metaKey, float deltaX, float deltaY, float velocityX, float velocityY) 59 m_data.m_scrollUpdate.m_velocityX = velocityX; 88 float velocityX() const
|
/external/opencv/cv/src/ |
cvoptflowhs.cpp | 66 // velocityX - pointer to horizontal and 91 float* velocityX, 323 float *vx = velocityX; 363 averageX = (velocityX[Line2] + 364 velocityX[Line2 + 1] + velocityX[Line1] + velocityX[Line3]) / 4; 380 tmp = (float)fabs(velocityX[Line2] - VelBufX[i & 1][0]); 389 averageX = (velocityX[Line2 + j - 1] + 390 velocityX[Line2 + j + 1] [all...] |
cvoptflowbm.cpp | 94 // velocityX, // pointer to ROI of horizontal and 108 float *velocityX, float *velocityY, 123 int *int_velocityX = (int *) velocityX; 153 velStep /= sizeof(velocityX[0]); 332 float *velxf = velocityX, *velyf = velocityY; 333 int* velx = (int*)velocityX, *vely = (int*)velocityY; 362 int VelocityX = 0; 502 VelocityX = VelX * temp; 507 VelocityX = VelX << 16; 512 int_velocityX[j] = VelocityX + (offX << 16) [all...] |
cvoptflowlk.cpp | 65 // velocityX, // pointer to horizontal and 88 float *velocityX, 148 velStep /= sizeof(velocityX[0]); 507 velocityX[j] = deltaX * Idelta; 520 velocityX[j] = (A1B2 + A2) * temp; 526 velocityX[j] = 0; 535 velocityX += velStep;
|
/external/chromium_org/tools/perf/page_sets/tough_canvas_cases/canvas2d_balls_common/ |
bouncing_balls.js | 89 var velocityX = Math.random()*maxInitVelocity*2 - maxInitVelocity; 107 velocityX = Math.random()*maxInitVelocity*2 - maxInitVelocity; 113 angularVelocity = 2*velocityX*canvasWidth/ballDiameter; 121 var deltaX = velocityX*remainingTime; 125 remainingTime -= (borderX - x)/velocityX; 129 remainingTime -= ((1-borderX) - x)/velocityX; 132 velocityX = -elasticity*velocityX; 133 deltaX = velocityX*remainingTime;
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
FilmStripGestureRecognizer.java | 34 boolean onFling(float velocityX, float velocityY); 72 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, 74 return mListener.onFling(velocityX, velocityY);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
FlingScroller.java | 76 public void fling(int startX, int startY, int velocityX, int velocityY, 85 double velocity = Math.hypot(velocityX, velocityY); 87 mCosAngle = velocityX / velocity;
|
GestureRecognizer.java | 35 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); 95 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, 97 return mListener.onFling(e1, e2, velocityX, velocityY);
|
/development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/ |
CardFlip.java | 170 public void rotateCardView(final CardView cardView, int stack, float velocityX, 173 boolean xGreaterThanY = Math.abs(velocityX) > Math.abs(velocityY); 182 if (velocityX < 0 && xGreaterThanY) { 190 cardView.flipRightToLeft(leftStack.size() - 1, (int)velocityX); 198 if (velocityX > 0 && xGreaterThanY) { 206 cardView.flipLeftToRight(rightStack.size() - 1, (int)velocityX);
|
/packages/apps/Calculator/src/com/android/calculator2/ |
PanelSwitcher.java | 59 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, 65 if (Math.abs(dx) > MAJOR_MOVE && Math.abs(velocityX) > Math.abs(velocityY)) { 66 if (velocityX > 0) {
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
Scroller.java | 354 * @param velocityX Initial velocity of the fling (X) measured in pixels per 367 public void fling(int startX, int startY, int velocityX, int velocityY, 382 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && 384 velocityX += oldVelocityX; 392 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); 401 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity;
|
/developers/build/prebuilts/gradle/BasicGestureDetect/BasicGestureDetectSample/src/main/java/com/example/android/basicgesturedetect/ |
GestureListener.java | 52 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
|
/developers/samples/android/input/gestures/BasicGestureDetect/BasicGestureDetectSample/src/main/java/com/example/android/basicgesturedetect/ |
GestureListener.java | 52 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
|
/development/samples/browseable/BasicGestureDetect/src/com.example.android.basicgesturedetect/ |
GestureListener.java | 52 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
|
/frameworks/base/core/java/android/widget/ |
Scroller.java | 418 * @param velocityX Initial velocity of the fling (X) measured in pixels per 431 public void fling(int startX, int startY, int velocityX, int velocityY, 446 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && 448 velocityX += oldVelocityX; 456 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); 464 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity;
|
OverScroller.java | 401 public void fling(int startX, int startY, int velocityX, int velocityY, 403 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); 412 * @param velocityX Initial velocity of the fling (X) measured in pixels per 433 public void fling(int startX, int startY, int velocityX, int velocityY, 439 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && 441 velocityX += oldVelocityX; 447 mScrollerX.fling(startX, velocityX, minX, maxX, overX); [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
LauncherScroller.java | 391 * @param velocityX Initial velocity of the fling (X) measured in pixels per 404 public void fling(int startX, int startY, int velocityX, int velocityY, 419 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && 421 velocityX += oldVelocityX; 429 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); 437 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity;
|
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
AwScrollOffsetManager.java | 260 public void onFlingStartGesture(int velocityX, int velocityY) { 261 mLastFlingVelocityX = velocityX; 281 public void flingScroll(int velocityX, int velocityY) { 287 mScroller.fling(scrollX, scrollY, velocityX, velocityY,
|
/frameworks/support/v4/java/android/support/v4/widget/ |
ScrollerCompat.java | 367 * @param velocityX Initial velocity of the fling (X) measured in pixels per 380 public void fling(int startX, int startY, int velocityX, int velocityY, 382 IMPL.fling(mScroller, startX, startY, velocityX, velocityY, minX, maxX, minY, maxY); 391 * @param velocityX Initial velocity of the fling (X) measured in pixels per 408 public void fling(int startX, int startY, int velocityX, int velocityY, 410 IMPL.fling(mScroller, startX, startY, velocityX, velocityY,
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
SwapButton.java | 86 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/third_party/ |
GestureDetector.java | 119 * @param velocityX The velocity of this fling measured in pixels per second 125 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); 183 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, 627 final float velocityX = velocityTracker.getXVelocity(pointerId); 630 || (Math.abs(velocityX) > mMinimumFlingVelocity)){ 631 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY);
|
/frameworks/base/core/java/android/view/ |
GestureDetector.java | 106 * @param velocityX The velocity of this fling measured in pixels per second 112 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); 170 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, 606 final float velocityX = velocityTracker.getXVelocity(pointerId); 609 || (Math.abs(velocityX) > mMinimumFlingVelocity)){ 610 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY);
|