MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER GRAPHICS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In mid point line algorithm, if current selected point is (Xp+1, yp) then what will be the next mid point
A
(Xp+1, Yp+1/2)
B
(Xp+2, Yp+1/2)
C
(Xp+2, Yp+3/2)
D
(Xp+1, Yp+3/2)
Explanation: 

Detailed explanation-1: -F(p) = x2 + y2 – r2 The value of P is calculated at the mid-point of the two contending pixels i.e. (x-0.5, y+1).

Detailed explanation-2: -Given the starting and ending coordinates of a line, Mid Point Line Drawing Algorithm attempts to generate the points between the starting and ending coordinates. Also Read-DDA Line Drawing Algorithm.

Detailed explanation-3: -The initial value of decision parameter can be obtained by evaluating circle function at the start Position (x0, y0) = (0, r).

Detailed explanation-4: -Mid Point Algorithm If PK < 0 then next point on circle (0, 0) is (XK+1, YK) and PK+1 = PK + 2XK+1 + 1 Else PK+1 = PK + 2XK+1 + 1 – 2YK+1 Where, 2XK+1 = 2XK+2 and 2YK+1 = 2YK-2.

There is 1 question to complete.