I have a set of lines where I know the beginning and end coordinates (X1, Y1, X2, Y2). What I need to calculate is a set of begin/end coordinates for parallel lines that makes the line a set distance away.
Example, if I have coordinates (0,0,50,0), which is a horizontal line, and the distance required is 10, then what I should end up with is (0,10,50,10) a line that is parallel to the first but offset by 10. I plan to put in +10 and -10 for the distances to get lines the same distance on either side.
How would I go about that?
Example, if I have coordinates (0,0,50,0), which is a horizontal line, and the distance required is 10, then what I should end up with is (0,10,50,10) a line that is parallel to the first but offset by 10. I plan to put in +10 and -10 for the distances to get lines the same distance on either side.
How would I go about that?