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

Why are d1 and d2 introduced?

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

page1.jpg
page2.jpg
page3.jpg
0
jtiernan2008
• 2
3 Solutions

Commented:
> Why are d1 and d2 introduced?
To avoid having to write (y-yi) and (yi+1-y) every time
0

Commented:

> 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

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

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