Drawing N-width lines?

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-06-05T20:13:10Z Indexed on 2010/06/05 20:22 UTC
Read the original article Hit count: 332

Filed under:
|
|
|

Given a series of points, how could I calculate the vector for that line 5 pixels away? Ex: Given:

   \
    \
     \

How could I find the vector for

   \  \
    \  \
     \  \

The ones on the right. But bear in mind that it may not always be a nice straight line.

I'm trying to figure out how programs like Flash can make thick outlines.

Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about c