Two points (x1,y1) and (x2,y2) lie on the same side of the straight line ax + by +c = 0 if (ax1+by1+c) (ax2+by2+c) is positive