In the cohen-Sutherland algorithm, if the codes of two points P and Q are 0000…
In the cohen-Sutherland algorithm, if the codes of two points P and Q are 0000 and 0000, then the line segment joining the points P and Q will be _____ the clipping window.
Answer: C. Totally inside — In the Cohen-Sutherland algorithm, a region code of 0000 for a point means that the point is inside the clipping window. If both points P and Q have codes…
- A.
Totally outside
- B.
Partially outside
- C.
Totally inside
- D.
Partially inside
Attempted by 169 students.
Show answer & explanation
Correct answer: C
In the Cohen-Sutherland algorithm, a region code of 0000 for a point means that the point is inside the clipping window. If both points P and Q have codes 0000, it means both lie inside the clipping window.
Therefore, the entire line segment joining P and Q is totally inside the clipping window.