Files
GSS2Rework/GSS2.UI.Core/Helpers/PointHelper.cs
T

11 lines
298 B
C#

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));
}