Here is just a trivial solution to draw a line, but I don't like it very much.
As you will see : for vertical lines it does'nt work correctly and for large distance, it takes time to compute the line !!!
So enjoy it and "BONNE CHANCE"