21 lines
511 B
C#
21 lines
511 B
C#
namespace Passer.LinearAlgebra {
|
|
|
|
public class Vector3Of<T> {
|
|
public T x;
|
|
public T y;
|
|
public T z;
|
|
|
|
public Vector3Of(T x, T y, T z) {
|
|
this.x = x;
|
|
this.y = y;
|
|
this.z = z;
|
|
}
|
|
}
|
|
|
|
public class Vector3Int : Vector3Of<int> {
|
|
public Vector3Int(int x, int y, int z) : base(x, y, z) { }
|
|
}
|
|
public class Vector3Float : Vector3Of<float> {
|
|
public Vector3Float(float x, float y, float z) : base(x, y, z) { }
|
|
}
|
|
} |