setXYZ method

void setXYZ(
  1. int index,
  2. num x,
  3. num y,
  4. num z,
)

Implementation

void setXYZ(int index, num x, num y, num z) {
  int idx = index * itemSize;

  array[idx + 0] = x.toDouble();
  array[idx + 1] = y.toDouble();
  array[idx + 2] = z.toDouble();
}