CPolynomial:Init
The Init method sets the first n coefficients to the same target value.
CPolynomial:Init( n, value ) |
n is the number of coefficients to set.
value is the target value to assign to the first n coefficients.
The following script initializes through 4-th order (the first 5 indices) to 1.0:
|
-- create a CPolynomial |
|
-- set first 5 values to 1.75 |
|
-- result: coef[3] = 1.75 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.