Solved

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

Posted on 2009-05-03
3
295 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Article by: Nicole
This is a research brief on the potential colonization of humans on Mars.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
Learn how to set up basic frames and paths in Prezi and understand the open space that Prezi allows you to create presentations in.
Learn how to create interesting presentations by including videos to keep your audience engaged using Prezi. Select "Insert" from the top menu in your Prezi editor: Select "YouTube Video": Paste the video URL into the prompt: "Select "Insert":…

706 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

14 Experts available now in Live!

Get 1:1 Help Now