toArray method
array
- (optional) The target array.
offset
- (optional) The array offset.
Returns an array with the coefficients, or copies them into the provided array. The coefficients are represented as numbers.
Implementation
List<double> toArray(List<double> array, [int offset = 0]) {
final coefficients = this.coefficients;
for (int i = 0; i < 9; i++) {
coefficients[i].copyIntoArray(array, offset + (i * 3));
}
return array;
}