Files
BetterLyrics/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Helper/VectorHelper.cs
2025-10-25 16:59:03 -04:00

23 lines
496 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace BetterLyrics.WinUI3.Helper
{
public static class VectorHelper
{
public static Vector2 WithX(this Vector2 source, float x)
{
return new Vector2(x, source.Y);
}
public static Vector2 WithY(this Vector2 source, float y)
{
return new Vector2(source.X, y);
}
}
}