InterviewSolution
Saved Bookmarks
| 1. |
If the logical AND of the endpoint codes is NOT zero, the line can be trivially accepted.(a) True(b) FalseThe question was asked in an interview for job.This interesting question is from Cohen-Sutherland Line Clipping topic in chapter 2D Transformation and Viewing of Computer Graphics |
|
Answer» RIGHT answer is (B) False The best explanation: Once the codes for each endpoint of a line are determined, the logical AND OPERATION of the codes determines if the line is completely outside of the WINDOW. If the logical AND of the endpoint codes is not zero, the line can be trivially rejected and if it is zero, then only it is accepted. |
|