function PointInQuad(px, py, x1, y1, x2, y2, x3, y3, x4, y4)

Returns true if the point (px, py) is in the quad (x1, y1) to (x4, y4)