CPolygon:Scale
The Scale method scales the CPolygon relative to its center. A scale factor of 1.0 applies no scaling.
CPolygon:Scale( nScale ) CPolygon:Scale( nScaleX, nScaleY ) where |
nScale is the multiplication factor to be applied in both directions.
nScaleX, nScaleY are the multiplication factors for the x and y directions.
The following script creates a CPolygon from 2 arrays and applies a scale factor of 1.5:
|
-- create CPolygon A |
|
-- result: x,y = 6, -3 |
|
-- scale the polygon |
|
-- result: x,y = 6.25, -4.0625 |