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();
}