#22461 - FPChris - Tue Jun 22, 2004 2:45 am
Here's a nagging question...
Alot of interger based line routines I've seen have
a common problem when dealing with lines at near vertical
or near horizontal. Example...
instead of:
you get this:
Can anybody offer a way of getting rid of this?
It seems to be releated to the direction of the line and integer math.
The lower right quardrant types seem fine. But I didn't
want to implement a bunch of end swapping to deal with it.
Any suggestions?
Chris
Alot of interger based line routines I've seen have
a common problem when dealing with lines at near vertical
or near horizontal. Example...
instead of:
Code: |
XXXXXXXX XXXXXXXX |
you get this:
Code: |
X XXXXXXXXXXXXXXX |
Can anybody offer a way of getting rid of this?
It seems to be releated to the direction of the line and integer math.
The lower right quardrant types seem fine. But I didn't
want to implement a bunch of end swapping to deal with it.
Any suggestions?
Chris