factory method

Matrix3 factory(
  1. NativeArray<num> array, {
  2. int offset = 0,
})

Implementation

Matrix3 factory(NativeArray array, {int offset = 0}) {
  for (int i = 0; i < 9; i++) {
    storage[i] = array[i + offset].toDouble();
  }

  return this;
}