copyFromArray method
array
- the array to read the elements from.
offset
- (optional) index of first element in the array.
Default is 0
.
Sets the elements of this matrix based on an array in column-major format.
Implementation
Matrix3 copyFromArray(List<double> array, {int offset = 0}) {
for (int i = 0; i < 9; i++) {
storage[i] = array[i + offset];
}
return this;
}