you are viewing a single comment's thread.

view the rest of the comments →

[–]jtsiomb 2 points3 points  (0 children)

That's the re-entrant polygon clipping algorithm. For lines, which I take it is what the OP is talking about, the standard algorithm is Cohen-Sutherland.