title: Finding slope between coordinates stored in List(Of Point) data types
body: <p>I am working in VB 2008. I have used a List(Of Point) data type to store coordinates of certain pixel values from a bitmap:</p>
  
  <pre><code>'This code is in a loop
  Dim bpCoordinates As New List(Of Point)
  If pixelClr &gt; 72 Then
  bpCoordinates.Add(New Point(FrameNumber, y))
  End If
  </code></pre>
  
  <p>I want to calculate the slope between the stored points in the list using (y2 - y1)/(x2 - x1).
  The problem I have is accessing the points in my list. I don't how to do this.</p>
  
  <p>I looked online and can't find any way of extracting the individual coordinate points from the list. Any suggestions. Thanks.</p>