setValues method Null safety

void setValues(
  1. int index,
  2. double x,
  3. double y,
  4. double z
)

Set the vector at index to x, y, and z.

Implementation

void setValues(int index, double x, double y, double z) {
  final i = _vectorIndexToBufferIndex(index);
  buffer[i + 0] = x;
  buffer[i + 1] = y;
  buffer[i + 2] = z;
}