title: How do i find the distance between two points/pixels?
body: <p>I have this method:</p>
  
  <pre><code>private static List&lt;Point&gt; ExtendPoints(Point pt1, Point pt2)
  {
      List&lt;Point&gt; ExtendedPoints = new List&lt;Point&gt;();
      decimal i = (Math.Sqrt(Math.Pow(Math.Abs(pt1.X - pt2.X), 2) + Math.Pow(Math.Abs(pt1.Y - pt2.Y), 2) + Math.Pow(Math.Abs(z1 - z2), 2)));
  
      return ExtendedPoints;
  }
  </code></pre>
  
  <p>I need to find the exact x and y coordinate between the two points pt1 and pt2.
  The result should for example: 12,13 and this coordinate is exactly in the middle between the two points.</p>
  
  <p>The way im doing it now with the decimal and the Math calculation is not the right way.</p>