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