Removed warnings when converting Vectors from GlitchyEngine to DirectX

This commit is contained in:
Simon Lübeß
2021-09-18 18:59:01 +02:00
parent a80a63fbc1
commit 0c4fd27226
5 changed files with 4 additions and 25 deletions
-7
View File
@@ -272,13 +272,6 @@ namespace GlitchyEngine.Math
public override void ToString(String strBuffer) => strBuffer.AppendF("X:{0} Y:{1}", X, Y);
// Todo: move to extension
[Inline]
public static implicit operator DirectX.Math.Vector2(in Self value) => *(DirectX.Math.Vector2*)&value;
[Inline]
public static implicit operator Self(in DirectX.Math.Vector2 value) => *(Self*)&value;
[Inline]
public static explicit operator Self(float value) => Self(value);
}