View Single Post
Old 10-16-2004, 05:17 AM   #1 (permalink)
john_tran
Registered User
 
Join Date: Oct 2004
Posts: 22
john_tran is on a distinguished road
About Draw Line Algorithm , please!

I'm drawing a line by BRESENHAM ALGORITHM.
y = mx+b
But i just know how to draw with 0<m<1
When m>=1, i dont know how to draw it exactly.
Can you show me all the BRESENHAM ALGORITHM with any m.

In addition, When i draw a circle using MID_POINT Algorithm. When we calculate the p as :
p0 = 5/4 - r (r=radius of the circle)
my teacher said that we can reduce it to : p0' = 1-r, it will reject the real number. But why? Why we can use p0' instead of p0?
john_tran is offline   Reply With Quote