Implementation of the basic geometric primitives
Tests whether the point set is in general position or not. If report is set to True it return all triples of points not in general position
Takes a function and a point set as a parameter. It applies f(p,pts-p) for every point p in pts
Sorts points around p in CCW order.
Python version of sort_around_point
Checks whether the point set is sorted around p
Consider the walk form p0 to p1 to p2. Returns -1 if it is a turn to the left, 1 if it is to the right and 0 otherwise