code: public float getTranslationY() {
      return calcAverage(mDetector.getCurrentY(), mDetector.getPointerCount()) -
          calcAverage(mDetector.getStartY(), mDetector.getPointerCount());
    }
docs: Gets the Y component of the translation