title: How to get distance between two points in Android?
body: <p>I set the two pointers inside <code>ACTION_POINTER_DOWN</code></p>
  
  <pre><code>point1.set(event.getX(0),event.getY(0));
  point2.set(event.getX(1),event.getY(1));
  </code></pre>
  
  <p>How can I get the distance between this two points?
  Is there any way to get it?</p>
  
  <p>I want the distance to make some Scrolling effect. With the distance, I can use it like a scalefactor and resize my Layouts.</p>
  
  <p>I hope someone can tell me how to do that!</p>