Files
GSS2Rework/GSS2.UI.Core/Helpers/PointHelper.cs
T
amkovkov 821144a691 fix: typos
TOO many typos
2026-03-11 12:46:21 +03:00

11 lines
301 B
C#

using Avalonia;
namespace GSS2.Core.UI.Extensions;
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));
}