aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio/Renderer/Utils/Math/Matrix2x2.cs
diff options
context:
space:
mode:
authorTSR Berry <20988865+TSRBerry@users.noreply.github.com>2023-04-08 01:22:00 +0200
committerMary <thog@protonmail.com>2023-04-27 23:51:14 +0200
commitcee712105850ac3385cd0091a923438167433f9f (patch)
tree4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.Audio/Renderer/Utils/Math/Matrix2x2.cs
parentcd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff)
Move solution and projects to src
Diffstat (limited to 'Ryujinx.Audio/Renderer/Utils/Math/Matrix2x2.cs')
-rw-r--r--Ryujinx.Audio/Renderer/Utils/Math/Matrix2x2.cs71
1 files changed, 0 insertions, 71 deletions
diff --git a/Ryujinx.Audio/Renderer/Utils/Math/Matrix2x2.cs b/Ryujinx.Audio/Renderer/Utils/Math/Matrix2x2.cs
deleted file mode 100644
index 5b513aff..00000000
--- a/Ryujinx.Audio/Renderer/Utils/Math/Matrix2x2.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-namespace Ryujinx.Audio.Renderer.Utils.Math
-{
- record struct Matrix2x2
- {
- public float M11;
- public float M12;
- public float M21;
- public float M22;
-
- public Matrix2x2(float m11, float m12,
- float m21, float m22)
- {
- M11 = m11;
- M12 = m12;
-
- M21 = m21;
- M22 = m22;
- }
-
- public static Matrix2x2 operator +(Matrix2x2 value1, Matrix2x2 value2)
- {
- Matrix2x2 m;
-
- m.M11 = value1.M11 + value2.M11;
- m.M12 = value1.M12 + value2.M12;
- m.M21 = value1.M21 + value2.M21;
- m.M22 = value1.M22 + value2.M22;
-
- return m;
- }
-
- public static Matrix2x2 operator -(Matrix2x2 value1, float value2)
- {
- Matrix2x2 m;
-
- m.M11 = value1.M11 - value2;
- m.M12 = value1.M12 - value2;
- m.M21 = value1.M21 - value2;
- m.M22 = value1.M22 - value2;
-
- return m;
- }
-
- public static Matrix2x2 operator *(Matrix2x2 value1, float value2)
- {
- Matrix2x2 m;
-
- m.M11 = value1.M11 * value2;
- m.M12 = value1.M12 * value2;
- m.M21 = value1.M21 * value2;
- m.M22 = value1.M22 * value2;
-
- return m;
- }
-
- public static Matrix2x2 operator *(Matrix2x2 value1, Matrix2x2 value2)
- {
- Matrix2x2 m;
-
- // First row
- m.M11 = value1.M11 * value2.M11 + value1.M12 * value2.M21;
- m.M12 = value1.M11 * value2.M12 + value1.M12 * value2.M22;
-
- // Second row
- m.M21 = value1.M21 * value2.M11 + value1.M22 * value2.M21;
- m.M22 = value1.M21 * value2.M12 + value1.M22 * value2.M22;
-
- return m;
- }
- }
-} \ No newline at end of file