Scalling connected lines

Posted by Hristo on Stack Overflow See other posts from Stack Overflow or by Hristo
Published on 2010-05-20T23:16:56Z Indexed on 2010/05/20 23:20 UTC
Read the original article Hit count: 185

Filed under:
|
|
|
|

Hello,

I have some kind of a shape consisting of vertical, horizontal and diagonal lines. I have starting X,Y and ending X,Y (this is my input - just 2 points defining a line) of each line and I would like to make the whole shape scalable (just by changing the value of a scale ratio variable), so that I can still preserve the proper connection of the lines and the proportions as well. Just for getting a better idea of what I mean: it'd be as if I had the same lines in a vector editor.

Would that be possible with an algorithm, and could you please, give me another possible solution if there is no such algorithm ?

Thank you very much in advance!

© Stack Overflow or respective owner

Related posts about scale

Related posts about connected