Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 2 ( 1 6 MARKS ) Two ( 2 ) lines are to be drawn using a raster algorithm. The first line L 1

QUESTION 2(16 MARKS)
Two (2) lines are to be drawn using a raster algorithm. The first line L1 is between points A=
(1,1) and B=(5,4) and the second line L2 is between points C=(2,3) and D=(6,4).
a) Use Bresenham's algorithm to draw the line L1 between A and B. List the pixel
coordinates (x,y) of the five (5) points of the line segment, and show all working.
(5 marks)
b) Use Bresenham's algorithm to draw the line L2 between C and D. List the pixel
coordinates (x,y) of the five (5) points of the line segment, and show all working.
(5 marks)
c) Where do L1 and L2 intersect?
(2 marks)
d) Calculate the distance between this raster intersection point and the true geometric
intersection point.
(4 marks)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are the objectives of performance appraisal ?

Answered: 1 week ago

Question

State the uses of job description.

Answered: 1 week ago

Question

denigration of emotional outbursts; being reserved;

Answered: 1 week ago