forked from amkovkov/GranuSightSoftware2
11 lines
301 B
C#
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));
|
|
}
|
|
|