How to draw an outline around any line

后端 未结 5 1777
一生所求
一生所求 2020-12-09 06:11

\"enter

So I have a arbitary line (See an example shown in fig 1) made up of n points<

5条回答
  •  有刺的猬
    2020-12-09 06:35

    If you have the points of the line segments, you can easily create two parallel lines to each segment and calculate the connection point where they intersect with the next if they were lines (and not line segments). This site should give you all you need to calculate super fast intersections:

    http://www.math.niu.edu/~rusin/known-math/95/line_segs

提交回复
热议问题