Cohen Sutherland algorithm
Point clipping is very simple. All you need to check is whether a point is inside the window extremes in x- and y-directions. For line clipping several algorithms have been introduced over the years and many refinements have also been suggested by people in order to improve the performance of the algorithms. One of the first algorithms that is still being used in applications is Cohen Sutherland algorithm.