Added explicit conversion from float to Vector

This commit is contained in:
Simon Lübeß
2021-04-09 19:34:44 +02:00
parent 92a3eaa426
commit 838bb7ec2e
3 changed files with 306 additions and 258 deletions
+3
View File
@@ -223,5 +223,8 @@ namespace GlitchyEngine.Math
[Inline]
public static implicit operator Self(in DirectX.Math.Vector2 value) => *(Self*)&value;
[Inline]
public static explicit operator Self(float value) => Self(value);
}
}