new_centroid


The new_centroid function is a non-class version of the CCentroid:new method which creates and returns a new CCentroid object.

Syntax

C = new_centroid()

bullet.gif    C is returned as a new CCentroid object intiialized with default properties.

C = new_centroid( CCentroid_old )

bullet.gif    This is a copy constructor. C is returned as a new CCentroid object initialized to the properties of the existing CCentroid_old object.

bullet.gif    On failure, nil is returned.

Example

The following script creates a new CCentroid object:

C = new_centroid()

-- create a CCentroid with default properties

Related Topics

CCentroid Class, new, delete

 


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.