38 Sorting by Angle Computing angles from coordinates is complex and leads to numerical inaccuracy We can sort a set of points by angle with respect to the anchor point a using a comparator based on the orientation function –b  c  orientation(a, b, c)  CCW –b  c  orientation(a, b, c)  COLL –b  c  orientation(a, b, c)  CW a b c CCW a c b CW a b c COLL
{}