forked from amkovkov/GranuSightSoftware2
feat: views tpuchscreen zoom and pan
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user