Add kiwi lib

This commit is contained in:
Jérôme Leclercq
2020-09-05 14:24:41 +02:00
parent a08daec53e
commit 8913d5c1d1
19 changed files with 3370 additions and 0 deletions

24
thirdparty/include/kiwi/util.h vendored Normal file
View File

@@ -0,0 +1,24 @@
/*-----------------------------------------------------------------------------
| Copyright (c) 2013-2017, Nucleic Development Team.
|
| Distributed under the terms of the Modified BSD License.
|
| The full license is in the file LICENSE, distributed with this software.
|----------------------------------------------------------------------------*/
#pragma once
namespace kiwi
{
namespace impl
{
inline bool nearZero(double value)
{
const double eps = 1.0e-8;
return value < 0.0 ? -value < eps : value < eps;
}
} // namespace impl
} // namespace kiwi