code: public float getTranslationX() {
      return calcAverage(mDetector.getCurrentX(), mDetector.getPointerCount()) -
          calcAverage(mDetector.getStartX(), mDetector.getPointerCount());
    }
docs: Gets the X component of the translation