jojo555
04-03-2004, 11:46 PM
Hi.
I have a 2d shape and i want to find out its centre about which i can rotate it. I also want to use this centre point for scaling without affecting its position. I would use this to first translate the shape so that its centre concides with origin, scale it, and then translate it back.
Any simple algorithm to calculate the centre, knowing the vertices of the shape?
Thanks.
I have a 2d shape and i want to find out its centre about which i can rotate it. I also want to use this centre point for scaling without affecting its position. I would use this to first translate the shape so that its centre concides with origin, scale it, and then translate it back.
Any simple algorithm to calculate the centre, knowing the vertices of the shape?
Thanks.