A very fast and efficient algorithm for line clipping. It is considered to be faster than other known line clipping algorithms like Cohen-Sutherland, Liang-Barsky etc.
Feel free to use it in your projects.