Line Clipping | Set 1 (Cohen-Sutherland Algorithm) - GeeksforGeeks
Cohen-Sutherland algorithm