The formula for m<1 has been implemented below.
The formula for m>1 should be found out and implemented.
Though I don't know if we should even find out the formulas for negative slope where |m| < 1 and |m| >1 ; for now, you could just try for positive m for which m>1
Bresenham Line Code
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.