Disclaimer - I am in no way a mathematician so please cater to my ignorance and explain everything as clearly as you can, if you are able to explain using code rather than notation, please do - If this question would be better suited to another StackExchange site please do tell me and I will move it
I currently have two sets of X/Y coordinates which describe the beginning and end of a line, what I hope to achieve is to plot two parallel lines of equal length either side of the line I have. I would need to be able to vary the distance between the lines. Please see my crude diagram below.
In the above image, I have X/Y 1 and 2, but need 3,4,5,6 where
i is variable.
This is to solve a programming problem, so if you have Python code to hand, that would be ideal, however just an explanation will do the trick.