Introduction To Clipping
Introduction To Clipping
C D
Trivially reject
Algorithm
• The line segment's endpoints are tested to see if the line can be
trivally accepted or rejected.
else if c1 & c2 != 0
discard line segment
else /* c1 & c2 = 0 */
if anything remains
accept clipped segment