public void Add(float[,] data) { float[,] newvel; float[,] newacc; // current velocity is ... old position - data; // this actually results with acc? newvel = ControlMatrix.Diff(data, position); newacc = ControlMatrix.Diff(newvel, velocity); velocity = newvel; acceleration = newacc; position = data; then = DateTime.Now; ControlMatrix.Scale(data, 0.09); }
public GestureTestForm() { InitializeComponent(); raw_data = new float[Width, Height]; input = new ControlMatrix(raw_data); }