CPolygon:Rotate
The Rotate method rotates the CPolygon about its center.
CPolygon:Rotate( nTheta ) where |
nTheta is the rotation angle, measured in degrees.
The following script creates a CPolygon from 2 arrays and applies a shift of (3.5, -2.1):
|
-- create CPolygon A |
|
-- result: x,y = 6, -3 |
|
-- scale the polygon |
|
-- result: x,y = 8.8587, -1.4106 |