public void RecalculatePath() { var m = (int)(Cycles * 200 * Tau); var path = new Vector2[m]; Parallel.For(0, m, i => path[i] = (Vector2)Solver.At(i / 20.0)); _path = path; }
public void RecalculatePath() { var m = (int)(Cycles * 200 * Tau); var path = new Vector2[m]; Parallel.For(0, m, i => path[i] = (Vector2)Solver.At(i / 20.0)); _path = path; }