Code example for MotionEvent.PointerCoords

0
            return mCoords;
        } 
 
        float getCurrentX() { 
            return mCoords.x;
        } 
 
        float getCurrentY() { 
            return mCoords.y;
        } 
 
        void moveBy(float delta) {
            mCoords.x += mStepX * delta;
            mCoords.y += mStepY * delta;
        } 
 
        boolean hasArrived() { 
            return Math.abs(mCoords.x - mStartX) >= Math.abs(mDeltaX) &&
                   Math.abs(mCoords.y - mStartY) >= Math.abs(mDeltaY);
        } 
    }