Drawing a line when x1 or y1 greater than x2 or y2?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Drawing a line when x1 or y1 greater than x2 or y2?

Henoktes722
My program draws correctly if dx, dy > 0. But what if dx or dy less than 0?
Reply | Threaded
Open this post in threaded view
|

Re: Drawing a line when x1 or y1 greater than x2 or y2?

Henoktes722
Okay, I got it using the algorithms you gave as a reference.