Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 4 ( 3 7 MARKS ) ( please answer it step by step and if had to draw, please draw and this is from

QUESTION 4(37 MARKS)( please answer it step by step and if had to draw, please draw and this is from past year exam paper so the answer must not be from coding openGL)
a) Vectors a=(x3-2) and b=(3-12) are 93.7 degrees apart. Solve for the highest
value of x.
(15 marks)
b) Use Bresenham's algorithm to draw the line y=0.5x+1 from (1,1) to (7,4). List the
pixel coordinates (x,y) of the six points of the line segment, and show all working.
(10 marks)
c) Create a way to use Bresenham's algorithm for lines with slope >1.
(4 marks)
d) Write pseudo code for a function to draw a regular N-gon. Arguments for the function
are location (x,y) and radius r.
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

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions