Draw a parallel line

Posted by VOX on Stack Overflow See other posts from Stack Overflow or by VOX
Published on 2010-05-13T08:47:15Z Indexed on 2010/05/13 9:24 UTC
Read the original article Hit count: 307

I have x1,y1 and x2,y2 which forms a line segment. How can I get another line x3,y3 - x4,y4 which is parallel to the first line as in the picture. I can simply add n to x1 and x2 to get a parallel line but it is not what i wanted. I want the lines to be as parallel in the picture.

alt text

© Stack Overflow or respective owner

Related posts about geometry

Related posts about computational-geometry