Fast Clipping
This algorithm has similarities with Cohen-Sutherland. The start and end positions are classified by which portion of the 9 area grid they occupy. A large switch statement jumps to a specialized handler for that case. In contrast, Cohen-Sutherland may have to iterate several times to handle the same case.
Read more about this topic: Line Clipping
Famous quotes containing the word fast:
“The wand is will; thou, fancy, saddle art,
Girt fast by memory; and while I spur
My horse, he spurs with sharp desire my heart;”
—Sir Philip Sidney (15541586)