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 insideIn 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…

  1. A.

    Totally outside

  2. B.

    Partially outside

  3. C.

    Totally inside

  4. 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.

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…