Recall from before how to tell if a point is inside a convex shape, by judging whether it is on the appropriate side of each bounding line of the shape.  We can write a line as (a,b)*(x,y) = c.  Then a side of the line is (a,b)*(x,y) >= c (or <=c).