mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-10 19:26:38 +08:00
使用PointBase代替Point
This commit is contained in:
10
AIStudio.Wpf.DiagramDesigner/Helpers/DoubleExtensions.cs
Normal file
10
AIStudio.Wpf.DiagramDesigner/Helpers/DoubleExtensions.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
public static class DoubleExtensions
|
||||
{
|
||||
public static bool AlmostEqualTo(this double double1, double double2, double tolerance = 0.0001)
|
||||
=> Math.Abs(double1 - double2) < tolerance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user