title: Intersection of line and square in JAVA
body: <p>JAVA:</p>
  
  <p>I'm working on a grid where the centre point of each square is an integer co-ordinate and I'm drawing a line between two integers and need to check whether it goes through a specific grid square based around integer coordinates. </p>
  
  <p>I've seen similar posts/google results but mine's a lot more basic so I'm wondering whether there's a simple solution I can't grasp. (Most probable)</p>
  
  <p>Appreciate any help you can give!</p>