Stability fix for _pointsToConvexHull function.
Created function for determining if a polygon is convex.
Use locally available function.
Added hull function stability fix which I thought I added but didn't.
Use locally available function.