How do you handle collinear points in the gift wrapping algorithm?
The gift wrapping algorithm is a simple and intuitive way to find the convex hull of a set of points in the plane. The convex hull is the smallest polygon that contains all the points, and it can be useful for applications such as collision detection, clustering, and shape analysis. However, the gift wrapping algorithm has a problem when some of the points are collinear, meaning they lie on the same line. How do you handle collinear points in the gift wrapping algorithm?