mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added explicit conversion from float to Vector
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,5 +293,8 @@ namespace GlitchyEngine.Math
|
||||
|
||||
[Inline]
|
||||
public static implicit operator Self(in DirectX.Math.Vector3 value) => *(Self*)&value;
|
||||
|
||||
[Inline]
|
||||
public static explicit operator Self(float value) => Self(value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -274,5 +274,8 @@ namespace GlitchyEngine.Math
|
||||
|
||||
[Inline]
|
||||
public static implicit operator Self(in DirectX.Math.Vector4 value) => *(Self*)&value;
|
||||
|
||||
[Inline]
|
||||
public static explicit operator Self(float value) => Self(value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user