mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:56:31 +00:00
9 lines
241 B
C#
9 lines
241 B
C#
using System.Windows;
|
|
|
|
namespace Azaion.Annotator.Extensions;
|
|
|
|
public static class PointExtensions
|
|
{
|
|
public static double SqrDistance(this Point p1, Point p2) =>
|
|
(p2.X - p1.X) * (p2.X - p1.X) + (p2.Y - p1.Y) * (p2.Y - p1.Y);
|
|
} |