Added Int32 vectors

This commit is contained in:
Simon Lübeß
2021-03-03 16:42:17 +01:00
parent 78af9e736e
commit 08daa2f59e
9 changed files with 658 additions and 5 deletions
@@ -12,9 +12,12 @@ namespace GlitchyEngine.Math
public int VectorSize => _vectorSize;
this(int vectorSize)
private String _vectorTypeName;
this(int vectorSize, String vectorTypeName)
{
_vectorSize = vectorSize;
_vectorTypeName = vectorTypeName;
}
/**
@@ -70,7 +73,7 @@ namespace GlitchyEngine.Math
//{(setterInvalid ? "[Error(\"Cannot assign multiple values to same component.\")]" : String.Empty)}
String swizzleString = scope $"""
public Vector{swizzleCount} {swizzleName}
public {_vectorTypeName}{swizzleCount} {swizzleName}
{{
get => .({swizzleConstructor});
set mut