Fix a couple of bugs in 2dConvex Hull algorithm.
* Need to use atan2 so 3d angles are calculated properly after projection.
* Need to handle case where the first tripple of points is non-convex,
previously this would cause the algorithm to fail with only 1 point.