mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:06:30 +00:00
add autodetection
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user