PDA

View Full Version : Rotating the polygon



navi1084
3rd September 2008, 11:31
Hi,
I have created a polygon in my Widget. When I increment the angle i am rotating the polygon using QMatrix. While rotation the polygon co-ordinates doesn't change. i.e. i can see rotating polygon in the screen, but the co-ordinates of the polygon variable and co-ordinate of the rotated polygon which appears in the screen is different.
So my question is how can i get rotated polygon's co-ordinates ???

Thanks

jacek
4th September 2008, 01:41
polygon = matrix.map( polygon );