CuteHMI - CuteHMI (CuteHMI.2)
constants.hpp
1 #ifndef H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_CONSTANTS_HPP
2 #define H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_CONSTANTS_HPP
3 
4 #include <QtGlobal>
5 
6 namespace cutehmi {
7 
13 constexpr qreal EPS = std::numeric_limits<qreal>::epsilon() * 0.5 * 0x10000; // eps * 0.5 * 2^16.
14 
15 }
16 
17 #endif
18 
19 //(c)C: Copyright © 2019, Michał Policht <michal@policht.pl>. All rights reserved.
20 //(c)C: This file is a part of CuteHMI.
21 //(c)C: CuteHMI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
22 //(c)C: CuteHMI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
23 //(c)C: You should have received a copy of the GNU Lesser General Public License along with CuteHMI. If not, see <https://www.gnu.org/licenses/>.
cutehmi
Definition: constants.hpp:6
std::numeric_limits::epsilon
T epsilon(T... args)
cutehmi::EPS
constexpr qreal EPS
CuteHMI epsilon.
Definition: constants.hpp:13