List<double> toArray(List<double> array, [int offset = 0]) { var coefficients = this.coefficients; for (var i = 0; i < 9; i++) { coefficients[i].toArray(array, offset + (i * 3)); } return array; }