From 0a75c7f4fd6c30027531723fbf1400a3f4f988d8 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 19 Feb 2025 11:21:12 +0100 Subject: [PATCH] Downgraded to C# 9 --- ControlCore.csproj | 3 +-- LinearAlgebra/Vector3.cs | 9 ++++++--- test/test.csproj | 8 +------- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/ControlCore.csproj b/ControlCore.csproj index 9f3c622..537dba9 100644 --- a/ControlCore.csproj +++ b/ControlCore.csproj @@ -3,8 +3,7 @@ false false - net9.0 - enable + net5.0 enable diff --git a/LinearAlgebra/Vector3.cs b/LinearAlgebra/Vector3.cs index 4b629ac..0cc4d7b 100644 --- a/LinearAlgebra/Vector3.cs +++ b/LinearAlgebra/Vector3.cs @@ -1,5 +1,6 @@ - #if !UNITY_5_3_OR_NEWER +using System; + namespace Passer.LinearAlgebra { public class Vector3Of { public T x; @@ -17,9 +18,11 @@ namespace Passer.LinearAlgebra { // } } - public class Vector3Int(int x, int y, int z) : Vector3Of(x, y, z) { + public class Vector3Int : Vector3Of { + public Vector3Int(int x, int y, int z) : base(x, y, z) { } } - public class Vector3Float(float x, float y, float z) : Vector3Of(x, y, z) { + public class Vector3Float : Vector3Of { + public Vector3Float(float x, float y, float z) : base(x, y, z) { } public float magnitude { get => (float)Math.Sqrt(this.x * this.x + this.y * this.y + this.z * this.z); diff --git a/test/test.csproj b/test/test.csproj index b0f97b9..6fe6bad 100644 --- a/test/test.csproj +++ b/test/test.csproj @@ -1,9 +1,7 @@  - net9.0 - latest - enable + net5.0 enable false true @@ -17,10 +15,6 @@ - - - -