CLsqFit:AddPt CLsqFit:DeletePt

CLsqFit:delete


The delete method deletes a CLsqFit object and sets it to nil. Call delete when you are finished using the object. Note that Mira automatically deletes all class objects when the script finishes.

Syntax

CLsqFit:delete()

bullet.gif    In place of CLsqFit, use the actual name of the object being deleted.

Remarks

This method deletes the instance of the CLsqFit object. Conversely, if you want to delete all the sample data but keep the CLsqFit object and its properties intact, use ResetPoints instead.

Example

This example creates a CLsqFit object, then deletes it. Note that the object could also be created using new_lsqfit:

L = new_lsqfit()

-- create a new instance of the CLsqFit class.

  ...

-- do something with the CLsqFit object.

L:delete()

-- delete the object and its associated memory.

Related Topics

CLsqFit class

new

ResetPoints

new_lsqfit

 


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