Collinear points algorithm Sort all points by polar angle with the most bottom point Scan through each angle to find the collinear points