sandbox
Loading...
Searching...
No Matches
constants.hpp
1#ifndef LIBSBX_MATH_CONSTANTS_HPP_
2#define LIBSBX_MATH_CONSTANTS_HPP_
3
4#include <cstdint>
5#include <cmath>
6#include <limits>
7#include <numbers>
8
9#include <libsbx/math/concepts.hpp>
10
11namespace sbx::math {
12
13template<floating_point Type>
14inline constexpr auto epsilon_v = std::numeric_limits<Type>::epsilon();
15
16inline constexpr auto epsilonf = epsilon_v<std::float_t>;
17
18inline constexpr auto epsilond = epsilon_v<std::double_t>;
19
20} // namespace sbx::math
21
22#endif // LIBSBX_MATH_CONSTANTS_HPP_