CPolynomial:Init
The Init method sets the first n coefficients to the same target value.
CPolynomial:Init( n, value ) |
The following script fragment 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 |