2D Plane Concave/Convex Polygon Calculation