title: Calculating the shortest distance(perpendicular distance) between a point and a line
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/849211/shortest-distance-between-a-point-and-a-line-segment">Shortest distance between a point and a line segment</a>  </p>
  </blockquote>
  
  
  
  <p>Hi,<br>
  I have a point, <code>A</code>, and a Line with two endpoints, <code>B</code> and <code>C</code>.
  I want to know how I can calculate the shortest distance between point <code>A</code> and the line between the points <code>B</code> and <code>C</code>.<br>
  Pseudo-code is enough, though Python is preferred.<br>
  Thanks</p>