Question: Suppose a 2-dimensional clipping window has its lower left corner at A(30, 50) and its upper right corner at C(220, 240). There are 2 lines
Suppose a 2-dimensional clipping window has its lower left corner at A(30, 50) and its upper right corner at C(220, 240). There are 2 lines P1P2 with P1(10,270) P2(300,0) and P3P4 with P3(20,10)P4(20,200) in the window. By using Cohen-Sutherland line clipping algorithm, (a) find the region codes for the endpoints P1 , P2, P3 and P4? (b) determine the endpoints of the clipped segment? (c) draw the output that will be displayed in the window?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
