mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
11 lines
275 B
C#
11 lines
275 B
C#
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;
|
|
}
|
|
}
|