Quote Originally Posted by marsh View Post
If Anyone who has done something like this before i would greatly appreciate the help.
I haven't ever done that myself (at least not successfully... ), but eventually there never has been a real need to do it anyway, and I'm quite happy about it...

At any rate, and since you neither posted code nor the problematic angles are really clear from your screen shot, perhaps the commonly used Bresenham line algorithm is helpful for you, either as a reference to spot what's wrong with your function, or as a basis to re-implement your function from scratch.