17 #ifndef OPENKALMAN_VALUES_CLASSES_FIXED_CONSTANTS_HPP 18 #define OPENKALMAN_VALUES_CLASSES_FIXED_CONSTANTS_HPP 28 #if __cpp_nontype_template_args >= 201911L 35 static_assert(number<T>);
37 static constexpr value_type value {stdex::numbers::pi_v<value_type>};
39 constexpr
operator value_type()
const {
return value; }
40 constexpr value_type operator()()
const {
return value; }
48 #if __cpp_nontype_template_args >= 201911L 55 static_assert(number<T>);
57 static constexpr value_type
value {-stdex::numbers::pi_v<value_type>};
59 constexpr
operator value_type()
const {
return value; }
60 constexpr value_type operator()()
const {
return value; }
68 #if __cpp_nontype_template_args >= 201911L 75 static_assert(number<T>);
77 static constexpr value_type
value {2 * stdex::numbers::pi_v<value_type>};
79 constexpr
operator value_type()
const {
return value; }
80 constexpr value_type operator()()
const {
return value; }
88 #if __cpp_nontype_template_args >= 201911L 95 static_assert(number<T>);
97 static constexpr value_type
value {
static_cast<value_type
>(0.5) * stdex::numbers::pi_v<value_type>};
99 constexpr
operator value_type()
const {
return value; }
100 constexpr value_type operator()()
const {
return value; }
108 #if __cpp_nontype_template_args >= 201911L 115 static_assert(number<T>);
116 using value_type = T;
117 static constexpr value_type
value {
static_cast<value_type
>(-0.5) * stdex::numbers::pi_v<value_type>};
119 constexpr
operator value_type()
const {
return value; }
120 constexpr value_type operator()()
const {
return value; }
131 static constexpr
auto value = value_type::equivalent;
133 constexpr
operator value_type ()
const {
return value; }
134 constexpr
value_type operator()()
const {
return value; }
144 static constexpr
auto value = value_type::less;
146 constexpr
operator value_type ()
const {
return value; }
147 constexpr
value_type operator()()
const {
return value; }
157 static constexpr
auto value = value_type::greater;
159 constexpr
operator value_type ()
const {
return value; }
160 constexpr
value_type operator()()
const {
return value; }
170 static constexpr
auto value = value_type::unordered;
172 constexpr
operator value_type ()
const {
return value; }
173 constexpr
value_type operator()()
const {
return value; }
A fixed version of pi.
Definition: fixed-constants.hpp:33
Definition: comparison.hpp:104
A fixed version of 2*pi.
Definition: fixed-constants.hpp:73
Definition: fixed_value.hpp:41
A fixed version of -pi.
Definition: fixed-constants.hpp:53
constexpr bool value
T is a fixed or dynamic value that is reducible to a number.
Definition: value.hpp:45
A fixed version of std::partial_ordering::greater.
Definition: fixed-constants.hpp:154
A fixed version of pi/2.
Definition: fixed-constants.hpp:93
A fixed version of -pi/2.
Definition: fixed-constants.hpp:113
A fixed version of std::partial_ordering::equivalent.
Definition: fixed-constants.hpp:128
Definition for values::abs.
Definition: fixed-constants.hpp:23
Definition for values::number.
A fixed version of std::partial_ordering::unordered.
Definition: fixed-constants.hpp:167
A fixed version of std::partial_ordering::less.
Definition: fixed-constants.hpp:141