aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/kiwisolver/py2/kiwi/util.h
blob: 0d36a33eb15eeb74f9a87b7c508e75e4b8d399a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*-----------------------------------------------------------------------------
| Copyright (c) 2013-2017, Nucleic Development Team.
|
| Distributed under the terms of the Modified BSD License.
|
| The full license is in the file COPYING.txt, 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