mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-13 03:34:55 +08:00
21 lines
421 B
C#
21 lines
421 B
C#
using System.Numerics;
|
|
|
|
namespace BetterLyrics.WinUI3.Extensions
|
|
{
|
|
public static class VectorExtensions
|
|
{
|
|
extension(Vector2 vector2)
|
|
{
|
|
public Vector2 WithX(float x)
|
|
{
|
|
return new Vector2(x, vector2.Y);
|
|
}
|
|
|
|
public Vector2 WithY(float y)
|
|
{
|
|
return new Vector2(vector2.X, y);
|
|
}
|
|
}
|
|
}
|
|
}
|