I'm trying to figure out if I have points that make for example a square:
* *
* *
and let's say I know the center of this square. I want a formula that will make it for eample twice its size but from the center
* *
* *
* *
* *
Therefore the new shape is twice as large and from the center of the polygon. It has to work for any shape not just squares.
I'm looking more for the theory behind it more than the implementation.