Consider the three points P1(1, 2, 0), P2(3, 6, 20) and P3(2, 4, 6) and a viewpoint C(0, 0, −10). Choose the correct options.
(A) P1 obscures P2 if viewed from C.
(B) P2 obscures P1 if viewed from C.
(C) P3 does not obscure P1 if viewed from C.
(D) P2 does not obscure P3 if viewed from C.
Choose the correct answer from the options given below:
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. (A), (C) and (D) Only
Explanation
C→P1 = (1, 2, 10) and C→P2 = (3, 6, 30) = 3 × (1, 2, 10), so P1 and P2 lie on the same ray and P1 is nearer, so P1 obscures P2. C→P3 = (2, 4, 16) is a different direction, so P3 and P1 or P2 do not obscure each other. True: A, C, D.More Programming Languages and Computer Graphics questions
- Which of the statements are CORRECT? (A) Constructors are invoked automatically when objects are created. (B) Constructors do not have retu…
- Match List I with List IIList I List II (a) Bresenham (I) Hidden surface removal (b) Cohen-Sutherland algorithm (II) Line drawing (c) Suthe…
- Consider the following code segment:int arr[] = {0,1,2,3,4}; int i = 1, *ptr; ptr = arr + 2; Arrange the following printf statements in inc…
- Statement (I): A friend function and the member functions of a friend class can directly access private and protected data. Statement (II):…
- Match List I with List IIList I List II A. Bezier curves I. 3-D objects that have translational/rotational symmetry B. B-Splines II. Fracta…
- What will be the output of the following code?#include <stdio.h> int main() { int a, b, c; a = 0x10; b = 010; c = a + b; printf("%d", c); r…