mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 11:47:54 -06:00
Fix retraction issues
This commit is contained in:
parent
2d849fec6c
commit
df0a49a73d
4 changed files with 12 additions and 7 deletions
|
@ -278,6 +278,12 @@ constexpr inline T sqr(T x)
|
|||
return x * x;
|
||||
}
|
||||
|
||||
template<typename Number> constexpr
|
||||
inline bool is_zero(Number value)
|
||||
{
|
||||
return std::fabs(double(value)) < 1e-6;
|
||||
}
|
||||
|
||||
template <typename T, typename Number>
|
||||
constexpr inline T lerp(const T& a, const T& b, Number t)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue