An implementation of the Sutherland–Hodgman algorithm used for clipping polygons in C
The user must provide the following inputs:
- Top left and bottom right co-ordinates of the clipping window
- Co-ordinates of the vertices of the polygon
The portion of the polygon remaining after performing left, top, right and bottom clipping using the clipping window.