//------------------------------------------------------------------ private void DrawStreamline() { Vector2 scale = new Vector2((float)480 / Size, (float)800 / Size); var screen = Vector2.Zero; // foreach (var x in Enumerable.Range (0, 32)) Point position = GetTextureCoordinates(screen); Vector4 value = data[GetIndex(position.X, position.Y)].ToVector4(); var streamline = new NumericalMethods.Simpson(x => x * value.Y / value.X, 0, 10, 1); // foreach (var point in Enumerable.Range (0, 32)) // { // Point position = GetTextureCoordinates (screen); // Vector4 value = data[GetIndex (position.X, position.Y)].ToVector4(); // Vector2 increment = new Vector2 (value.X, value.Y * value.X) ; // new Line (screen, screen + increment, Color.DarkOrange); // // screen += increment; // } }
//------------------------------------------------------------------ private void DrawStreamline() { Vector2 scale = new Vector2 ((float) 480 / Size, (float) 800 / Size); var screen = Vector2.Zero; // foreach (var x in Enumerable.Range (0, 32)) Point position = GetTextureCoordinates (screen); Vector4 value = data[GetIndex (position.X, position.Y)].ToVector4 (); var streamline = new NumericalMethods.Simpson (x => x * value.Y / value.X, 0, 10, 1); // foreach (var point in Enumerable.Range (0, 32)) // { // Point position = GetTextureCoordinates (screen); // Vector4 value = data[GetIndex (position.X, position.Y)].ToVector4(); // Vector2 increment = new Vector2 (value.X, value.Y * value.X) ; // new Line (screen, screen + increment, Color.DarkOrange); // // screen += increment; // } }