From 036698919943a6194d112d23cd73e739873c8b02 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Tue, 11 Feb 2025 14:25:57 +0100 Subject: [PATCH] Extended code --- LinearAlgebra/Matrix.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LinearAlgebra/Matrix.cs b/LinearAlgebra/Matrix.cs index 20feae7..60d260b 100644 --- a/LinearAlgebra/Matrix.cs +++ b/LinearAlgebra/Matrix.cs @@ -101,7 +101,6 @@ public class Matrix { // double checked code } - // Vector-matrix multiplication public static float[] MultiplyMatrixVector(float[,] A, float[] v) { int rows = A.GetLength(0); int cols = A.GetLength(1); @@ -116,6 +115,7 @@ public class Matrix { return result; } + // Vector-matrix multiplication public static Vector3 MultiplyMatrixVector3(float[,] A, Vector3 v) { return new Vector3() { x = A[0, 0] * v.x + A[0, 1] * v.y + A[0, 2] * v.z,