Пример #1
0
 public static bool AreClose(RectangleF rect1, RectangleF rect2)
 {
     if (rect1.IsEmpty)
     {
         return(rect2.IsEmpty);
     }
     if ((!rect2.IsEmpty && DoubleUtil.AreClose(rect1.X, rect2.X)) && (DoubleUtil.AreClose(rect1.Y, rect2.Y) && DoubleUtil.AreClose(rect1.Height, rect2.Height)))
     {
         return(DoubleUtil.AreClose(rect1.Width, rect2.Width));
     }
     return(false);
 }
Пример #2
0
 public static bool IsLessThan(double value1, double value2)
 {
     return(DoubleUtil.LessThan(value1, value2));
 }