fromArray method

Matrix4 fromArray(
  1. dynamic array, [
  2. int offset = 0
])

Implementation

Matrix4 fromArray(array, [int offset = 0]) {
  for (var i = 0; i < 16; i++) {
    elements[i] = array[i + offset].toDouble();
  }

  return this;
}