private static float spacing(MotionEvent event){
  float x=event.getX(0) - event.getX(1);
  float y=event.getY(0) - event.getY(1);
  return (float)Math.sqrt(x * x + y * y);
}

private static float spacing ( MotionEvent event ) { float x = event . getX ( 0 ) - event . getX ( 1 ) ; float y = event . getY ( 0 ) - event . getY ( 1 ) ; return ( float ) Math . sqrt ( x * x + y * y ) ; }
returns the distance between two pointer touch points
