From caa53749f3331e485f2b1aee2c2112d0d90047b1 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Mon, 27 Jan 2025 12:13:05 +0100 Subject: [PATCH] Further refactoring --- LinearAlgebra/Vector2.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/LinearAlgebra/Vector2.cs b/LinearAlgebra/Vector2.cs index 333ba88..88bc2de 100644 --- a/LinearAlgebra/Vector2.cs +++ b/LinearAlgebra/Vector2.cs @@ -3,8 +3,17 @@ namespace Passer.LinearAlgebra { public class Vector2Of { public T x; public T y; + + public Vector2Of(T x, T y) { + this.x = x; + this.y = y; + } } - public class Vector2Int : Vector2Of { } - public class Vector2Float : Vector2Of { } + public class Vector2Int : Vector2Of { + public Vector2Int(int x, int y) : base(x, y) { } + } + public class Vector2Float : Vector2Of { + public Vector2Float(float x, float y) : base(x, y) { } + } } \ No newline at end of file