painter.rotate( -90 );![]()
painter.rotate( -90 );![]()
Dude, I tried that. But, I want to know the reason why it's taking clockwise, and not the conventional trigonometric way.
If you want the reason, ask for the reason... You must have checked the documentation which says that rotate "Rotates the coordinate system the given angle clockwise". That is, it rotates the world where the polygons live. When you specify a polygon, you just specify points in the rotated coordinate system, not rotated coordinates. Completely conventional, but not perhaps completely documented.
Bookmarks