public void UpdateData(float X, float Y, float Z) { x = X; y = Y; z = Z; norm = (float)Math.Sqrt(x * x + y * y + z * z); newDataCallback?.Invoke(x, y, z); newNormCallback?.Invoke(norm); }
public void UpdateData(float data) { value = data; newDataCallback?.Invoke(value); }
public void UpdateData(float[] data) { bat1 = data[0]; bat2 = data[1]; newDataCallback?.Invoke(bat1, bat2); }