title: how to determine if points is on shape and in shape?
body: <p>I have two of this:</p>
  
  <pre><code>bool isPointOnShape(int a, int b)
  {
  
  }
  
  bool isPointInShape(int a, int b)
  {
  
  }
  </code></pre>
  
  <p>Say I have a square, first point (bottom left corner) is x,y (0,0) second point (top left) is (0,2), third is (2,2) and fourth is (0,2).</p>
  
  <p>The Points on shape would be (0,1) (1,2) (2,1) (1,0) and Points in shape is (1,1)</p>
  
  <p>How do I find out the points on shape / in shape and return a true value so that I can store it somewhere?</p>