new_centroid
The new_centroid function is a non-class version of the CCentroid:new method which creates and returns a new CCentroid object.
C = new_centroid()
C is returned as a new CCentroid object intiialized with default properties.
C = new_centroid( CCentroid_old )
This is a copy constructor. C is returned as a new CCentroid object initialized to the properties of the existing CCentroid_old object.
On failure, nil is returned.
The following script creates a new CCentroid object:
|
-- create a CCentroid with default properties |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.