Skip to content

Commit de05a89

Browse files
committed
Fix edge case and remove first version
CURA-12361
1 parent 4948ff4 commit de05a89

File tree

2 files changed

+34
-366
lines changed

2 files changed

+34
-366
lines changed

include/utils/Coord_t.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ template<utils::floating_point FactorType>
5858
return a - b > EPSILON;
5959
}
6060

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+
6176
} // namespace cura
6277

6378

0 commit comments

Comments
 (0)