Home
last modified time | relevance | path

Searched refs:mDirY (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DRenderPatchAnimation.java39 private float mDirY; field in RenderPatchAnimation
56 mDirY = mRenderPatch.getDimension() < 1.0f ? 2.0f * RANDOM.nextFloat() - 1.0f : 0.0f; in RenderPatchAnimation()
58 final float length = (float)Math.sqrt(mDirX * mDirX + mDirY * mDirY); in RenderPatchAnimation()
61 mDirY /= length; in RenderPatchAnimation()
78 mPosY += mDirY * t;
85 mDirY = Math.abs(mDirY);
87 mDirY = -Math.abs(mDirY);