mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-13 20:43:31 +08:00
15 lines
330 B
C#
15 lines
330 B
C#
namespace BetterGenshinImpact.GameTask.Model.Area.Converter;
|
|
|
|
|
|
/// <summary>
|
|
/// 平移变换
|
|
/// </summary>
|
|
public class TranslationConverter(int offsetX, int offsetY) : INodeConverter
|
|
{
|
|
|
|
public (int x, int y, int w, int h) ToPrev(int x, int y, int w, int h)
|
|
{
|
|
return (x + offsetX, y + offsetY, w, h);
|
|
}
|
|
}
|