We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4948ff4 commit de05a89Copy full SHA for de05a89
include/utils/Coord_t.h
@@ -58,6 +58,21 @@ template<utils::floating_point FactorType>
58
return a - b > EPSILON;
59
}
60
61
+[[nodiscard]] inline bool fuzzy_is_greater_or_equal(const coord_t a, const coord_t b)
62
+{
63
+ return a > b - EPSILON;
64
+}
65
+
66
+[[nodiscard]] inline bool fuzzy_is_lesser(const coord_t a, const coord_t b)
67
68
+ return b - a > EPSILON;
69
70
71
+[[nodiscard]] inline bool fuzzy_is_lesser_or_equal(const coord_t a, const coord_t b)
72
73
+ return b > a - EPSILON;
74
75
76
} // namespace cura
77
78
0 commit comments