feat: views tpuchscreen zoom and pan

This commit is contained in:
2026-02-09 12:50:55 +03:00
parent 6a6cf2e78a
commit 83186538ee
3 changed files with 172 additions and 29 deletions
+10
View File
@@ -0,0 +1,10 @@
using Avalonia;
namespace GSS2.Core.Extentions;
public static class PointHelper
{
public static Point Center(Point p1, Point p2) => new Point((p1.X + p2.X) / 2, (p1.Y + p2.Y) / 2);
public static Point Center(params Point[] ps) => new Point(ps.Average(p => p.X), ps.Average(p => p.Y));
}