void operator []=(int i, double v) { if(i == 0) x = v; else if(i == 1) y = v; else if(i == 2) z = v; onChangeCallback(); }