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
+24
View File
@@ -0,0 +1,24 @@
using GlitchyEngine.Math;
namespace System
{
extension Float
{
public float X
{
[Inline]
get => (float)this;
[Inline]
set mut => this = value;
}
[Inline]
public Vector2 XX => Vector2((float)this);
[Inline]
public Vector3 XXX => Vector3((float)this);
[Inline]
public Vector4 XXXX => Vector4((float)this);
}
}