CCentroid:GetStartingPos
The GetStartingPos method returns the starting coordinates used for the centroid calculation. These values are the x and y values passed to the Calc method.
nX, nY = CCentroid:GetStartingPos() where |
nX, nY are the starting coordinates passed to the Calc method and are measured in pixel coordinates.
|
-- create a new CCentroid object |
|
-- calculate the centroid near 100,200 |
|
-- result: 100, 200 |