Drawing and Painting a Convex Polygon and Testing Relationship of Point and Polygon