Question 7
Question 1: When (m > 1) in DDA algorithm, prove that Xk+1 = Xk + 1/m. Question 2: When (m < 1) in DDA algorithm, prove that Yk+1 = Yk + m. Question 3: Find the slope between (-6, 5) and (15, -1). Question 4: Using DDA line drawing algorithm, find the intermediate points between (2, 3) and (12, 8). Question 5: Using DDA line drawing algorithm, find the intermediate points between (-2, -4) and (10, 12). Question 6: Using DDA line drawing algorithm, find the intermediate points between (1, -2) and (-10, -13). Question 7: Write a program in BGI to draw a line using DDA algorithm when (m > 1) starting from (50, 100) to (250, 450). Use Yellow color for all pixel points with a window size of (600, 600) titled “DDA Algorithm”. (Note: the program should display error massages when the slope is equal or less than 1)
Using C++ language for Question 1: When (m > 1) in DDA algorithm, prove that Xk+1 = Xk + 1/m. Question 2: When (m < 1) in DDA algorithm, prove
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am