title: Calculate on which side of a line a point is
body: <p>I need to figure out how to calculate on which side of a line a point is. I'm searching a really fast and simple collision algorithm because I just need to know on what side a object is to define a collision state.</p>
  
  <p>Just like:</p>
  
  <pre><code>if(x &gt; line.x)
      return EnumSide.LEFT;
  </code></pre>
  
  <p>But the line needs to be diagonally. Any ideas?</p>