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); }
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); }
public static bool AreClose(Point point1, Point point2) { if (Tolerances.AreClose(point1.X, point2.X)) { return(Tolerances.AreClose(point1.Y, point2.Y)); } return(false); }
public static bool LessThanOrClose(double value1, double value2) { if (value1 >= value2) { return(Tolerances.AreClose(value1, value2)); } return(true); }
public static bool LessThan(double value1, double value2) { if (value1 < value2) { return(!Tolerances.AreClose(value1, value2)); } return(false); }
public static bool GreaterThan(double value1, double value2) { if (value1 > value2) { return(!Tolerances.AreClose(value1, value2)); } return(false); }
public static bool NearZero(Vector vector) { if (Tolerances.NearZero(vector.X)) { return(Tolerances.NearZero(vector.Y)); } return(false); }
public static bool NearZero(Point point) { if (Tolerances.NearZero(point.X)) { return(Tolerances.NearZero(point.Y)); } return(false); }
public static bool HaveMoved(Point point1, Point point2, double zoom) { return(Tolerances.HaveMoved((point1 - point2).LengthSquared, zoom)); }
public static bool DoPointsHit(Point point1, Point point2, double zoom) { return(Tolerances.DoPointsHit((point1 - point2).LengthSquared, zoom)); }