1.

The logical ______ of the endpoint codes determines if the line is completely inside the window.(a) AND(b) OR(c) NOT(d) NORThe question was posed to me by my college director while I was bunking the class.Enquiry is from Cohen-Sutherland Line Clipping in section 2D Transformation and Viewing of Computer Graphics

Answer»

Right choice is (b) OR

Easiest EXPLANATION: The logical OR of the ENDPOINT codes determines if the line is COMPLETELY inside the window. If the logical OR is zero, the line can be trivially ACCEPTED. For example, if the endpoint codes are 0000 and 0000, the logical OR is 0000 – the line can be trivially accepted.



Discussion

No Comment Found

Related InterviewSolutions