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