public float getTranslationY() {
    return calcAverage(mDetector.getCurrentY(), mDetector.getPointerCount())
        - calcAverage(mDetector.getStartY(), mDetector.getPointerCount());
  }
Gets the Y component of the translation
samples/gestures/src/main/java/com/facebook/samples/gestures/TransformGestureDetector.java