Solved

Please help understand these lecture notes on Bresenham's Line Algorithm

Posted on 2009-05-03
3
296 Views
Last Modified: 2013-11-19
Why are d1 and d2 introduced?

What does the "relative distances of 2 pixels from the actual position" mean?

Thanks in advance
page1.jpg
page2.jpg
page3.jpg
0
Comment
Question by:jtiernan2008
  • 2
3 Comments
 
LVL 84

Assisted Solution

by:ozo
ozo earned 300 total points
ID: 24291975
> Why are d1 and d2 introduced?
To avoid having to write (y-yi) and (yi+1-y) every time
0
 
LVL 84

Accepted Solution

by:
ozo earned 300 total points
ID: 24291983

> What does the "relative distances of 2 pixels from the actual position" mean?
It means the difference between the two distances, or which distance is larger
0
 
LVL 27

Assisted Solution

by:aburr
aburr earned 200 total points
ID: 24292237
Each pixel has an actual position determined by the x and y pair for that pixel.
[example. Pixel 1 has a position of (7 ,7), Pixel 2, in a different direction has a position of (-7, -7)]
The relative position is the distance between the pixels.
[In this example 98 units]
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Guide to the PMT, FV, IPMT and PPMT Functions In MS Excel we have the PMT, FV, IPMT and PPMT functions, which do a fantastic job for interest rate calculations.  But what if you don't have Excel ? This article is for programmers looking to re…
Lithium-ion batteries area cornerstone of today's portable electronic devices, and even though they are relied upon heavily, their chemistry and origin are not of common knowledge. This article is about a device on which every smartphone, laptop, an…
In this second Micro Tutorial in the series,  viewers will learn more basic shortcuts and functions of Illustrator. In this tutorial you will learn about the eyedropper tool, zoom , ellipses and more.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now