From 91d37e2f17ca0e3d9f122c54268356edb1fd2978 Mon Sep 17 00:00:00 2001 From: bonmas14 Date: Wed, 25 Oct 2023 01:02:43 +0300 Subject: full left-to-right order in matrix x vector multiplication --- AudioTester/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AudioTester') diff --git a/AudioTester/Program.cs b/AudioTester/Program.cs index 7557142..14212af 100644 --- a/AudioTester/Program.cs +++ b/AudioTester/Program.cs @@ -28,8 +28,8 @@ namespace AudioTester for (int i = 0; i < array.Length; i++) { - g.DrawLine(background, (mat * array[i].a + new Vector2(1000, 1000)).GetPoint(), (mat * array[i].b + new Vector2(1000, 1000)).GetPoint()); - g.DrawLine(foreground, (mat * array[i].a + new Vector2(1000, 1000)).GetPoint(), (mat * array[i].b + new Vector2(1000, 1000)).GetPoint()); + g.DrawLine(background, (array[i].a * mat + new Vector2(1000, 1000)).GetPoint(), (array[i].b * mat + new Vector2(1000, 1000)).GetPoint()); + g.DrawLine(foreground, (array[i].a * mat + new Vector2(1000, 1000)).GetPoint(), (array[i].b * mat + new Vector2(1000, 1000)).GetPoint()); } } -- cgit v1.2.3-70-g09d2