mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
Added Int32 vectors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user