Determining if a set of points are inside or outside a square
<p>I have two of these:</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>
