Question: a) Vectors a = (x 3-2) and b = (3-1 2) are 93.7 degrees apart. Solve for the highest value of x. (15 marks)

a) Vectors a = (x 3-2) and b = (3-1 2) are

a) Vectors a = (x 3-2) and b = (3-1 2) 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. ( d) Create a way to use Bresenham's algorithm for lines with slope > 1. (10 marks) (4 marks) Write pseudo code for a function to draw a regular N-gon. Arguments for the function are location (x,y) and radius r. (8 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a To solve for the highest value of x given that vectors a and b are 937 degrees apart we can use the dot product formula a b a b cos where a and b are the magnitudes of vectors a and b respectively a... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

6643335b209b7_952022.pdf

180 KBs PDF File

Word file Icon

6643335b209b7_952022.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!