Further refactoring

This commit is contained in:
Pascal Serrarens 2025-01-27 12:13:05 +01:00
parent b9d668926c
commit caa53749f3

View File

@ -3,8 +3,17 @@ namespace Passer.LinearAlgebra {
public class Vector2Of<T> {
public T x;
public T y;
public Vector2Of(T x, T y) {
this.x = x;
this.y = y;
}
}
public class Vector2Int : Vector2Of<int> { }
public class Vector2Float : Vector2Of<float> { }
public class Vector2Int : Vector2Of<int> {
public Vector2Int(int x, int y) : base(x, y) { }
}
public class Vector2Float : Vector2Of<float> {
public Vector2Float(float x, float y) : base(x, y) { }
}
}