I\'m going quite mad trying to calculate the point along the given line A-B, at a given distance from A, so that I can "draw" the line between two given points. It
Try to remove 'magnitude' term in the parentheses both for X and for Y expressions:
(int)( ((double)a.X + vectorX * distance) + 0.5 )