title: Calculating the highest value across a line drawn over a 2D-Array
body: <p>I am trying to find the highest value across a line in a uniform 2D Array e.g. <em>300x300</em>. The line is not necessarily a line that can be drawn horizontally, vertically or at a 45 degree angle. It can be at a different line, so I need to think think of a way to find out which cells in the array my line intersects.</p>
  
  <p>What is the best approach (and hopefully most efficient) that I should take to do this?</p>