convex quad test