Question discussion

In Bresenham's line algorithm, what is the initial decision parameter p₀ = 2Δy − Δx for the line from (1, 2) to (9, 7)?

919Medium DSSSB TGT Computer Science 0 replies 1 views
0

In Bresenham's line algorithm, what is the initial decision parameter p₀ = 2Δy − Δx for the line from (1, 2) to (9, 7)?

  • A5
  • B3
  • C−2
  • D2
Correct answer: D

Explanation

Δx = 8 and Δy = 5, so p₀ = 2 × 5 − 8 = 2.

Discussion 0

Nobody has replied yet. Start the discussion!