1#ifndef LIBSBX_MATH_TRAITS_HPP_
2#define LIBSBX_MATH_TRAITS_HPP_
4#include <libsbx/math/constants.hpp>
5#include <libsbx/math/concepts.hpp>
12template<
integral Type>
15 template<scalar Other>
16 inline static constexpr auto equal(Type lhs, Other rhs)
noexcept ->
bool {
17 return lhs ==
static_cast<Type
>(rhs);
22template<
floating_po
int Type>
25 template<scalar Other>
26 inline static constexpr auto equal(Type lhs, Other rhs)
noexcept ->
bool {
27 return std::abs(lhs -
static_cast<Type
>(rhs)) <= epsilon_v<Type>;
Definition: traits.hpp:10