zero method Null safety

void zero(
  1. Float32List matrix,
  2. int offset
)

Implementation

static void zero(Float32List matrix, int offset) {
  matrix[offset++] = 0.0;
  matrix[offset++] = 0.0;
  matrix[offset++] = 0.0;
  matrix[offset++] = 0.0;

  matrix[offset++] = 0.0;
  matrix[offset++] = 0.0;
  matrix[offset++] = 0.0;
  matrix[offset++] = 0.0;

  matrix[offset++] = 0.0;
  matrix[offset++] = 0.0;
  matrix[offset++] = 0.0;
  matrix[offset++] = 0.0;

  matrix[offset++] = 0.0;
  matrix[offset++] = 0.0;
  matrix[offset++] = 0.0;
  matrix[offset++] = 0.0;
}