Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

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

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
jtiernan2008
Asked:
jtiernan2008
  • 2
3 Solutions
 
ozoCommented:
> Why are d1 and d2 introduced?
To avoid having to write (y-yi) and (yi+1-y) every time
0
 
ozoCommented:

> 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
 
aburrCommented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now