Example #1
0
 public static bool AreClose(Vector3D vector1, Vector3D vector2)
 {
     if (Tolerances.AreClose(vector1.X, vector2.X) && Tolerances.AreClose(vector1.Y, vector2.Y))
     {
         return(Tolerances.AreClose(vector1.Z, vector2.Z));
     }
     return(false);
 }
Example #2
0
 public static bool IsUniform(CornerRadius cornerRadius)
 {
     if (Tolerances.AreClose(cornerRadius.TopLeft, cornerRadius.TopRight) && Tolerances.AreClose(cornerRadius.TopLeft, cornerRadius.BottomRight))
     {
         return(Tolerances.AreClose(cornerRadius.TopLeft, cornerRadius.BottomLeft));
     }
     return(false);
 }
Example #3
0
 public static bool AreClose(Point point1, Point point2)
 {
     if (Tolerances.AreClose(point1.X, point2.X))
     {
         return(Tolerances.AreClose(point1.Y, point2.Y));
     }
     return(false);
 }
Example #4
0
 public static bool LessThanOrClose(double value1, double value2)
 {
     if (value1 >= value2)
     {
         return(Tolerances.AreClose(value1, value2));
     }
     return(true);
 }
Example #5
0
 public static bool LessThan(double value1, double value2)
 {
     if (value1 < value2)
     {
         return(!Tolerances.AreClose(value1, value2));
     }
     return(false);
 }
Example #6
0
 public static bool GreaterThan(double value1, double value2)
 {
     if (value1 > value2)
     {
         return(!Tolerances.AreClose(value1, value2));
     }
     return(false);
 }
Example #7
0
 public static bool NearZero(Vector vector)
 {
     if (Tolerances.NearZero(vector.X))
     {
         return(Tolerances.NearZero(vector.Y));
     }
     return(false);
 }
Example #8
0
 public static bool NearZero(Point point)
 {
     if (Tolerances.NearZero(point.X))
     {
         return(Tolerances.NearZero(point.Y));
     }
     return(false);
 }
Example #9
0
 public static bool HaveMoved(Point point1, Point point2, double zoom)
 {
     return(Tolerances.HaveMoved((point1 - point2).LengthSquared, zoom));
 }
Example #10
0
 public static bool DoPointsHit(Point point1, Point point2, double zoom)
 {
     return(Tolerances.DoPointsHit((point1 - point2).LengthSquared, zoom));
 }