CPolynomial:Set
The Set method sets a coefficient index to a target value. The index begins at 0.
CPolynomial:Set( index, value ) |
index is the coefficient index to set, beginning at 0.
value is the target value to assign to assign.
The following script sets 2 of the coefficient values. Other coefficients, such as Coef[3], remains undefined:
|
-- create a CPolynomial |
|
-- set coef[4] |
|
-- set coef[1] |
|
-- result: coef[3] = 0 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.