DxLibEx
dxle::math Namespace Reference

Namespaces

 detail
 

Functions

template<typename FloatType , enable_if_t< std::is_floating_point< FloatType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR FloatType abs (FloatType x) DXLE_NOEXCEPT_OR_NOTHROW
 
template<typename FloatType , enable_if_t< std::is_floating_point< FloatType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR FloatType copysign (FloatType x, FloatType y) DXLE_NOEXCEPT_OR_NOTHROW
 
template<typename ArithmeticType1 , typename ArithmeticType2 , enable_if_t< std::is_arithmetic< ArithmeticType1 >::value &&std::is_arithmetic< ArithmeticType2 >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR dxle::float_promote_t< ArithmeticType1, ArithmeticType2 > copysign (ArithmeticType1 x, ArithmeticType2 y) DXLE_NOEXCEPT_OR_NOTHROW
 
template<typename FloatType , enable_if_t< std::is_floating_point< FloatType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR FloatType fabs (FloatType x) DXLE_NOEXCEPT_OR_NOTHROW
 
template<typename IntType , enable_if_t< std::is_integral< IntType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR double fabs (IntType x) DXLE_NOEXCEPT_OR_NOTHROW
 
template<typename FloatType , enable_if_t< std::is_floating_point< FloatType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR bool isnan (FloatType x) DXLE_NOEXCEPT_OR_NOTHROW
 
template<typename IntType , enable_if_t< std::is_integral< IntType >::value > = nullptr>
DXLE_CONSTEXPR bool isnan (IntType) DXLE_NOEXCEPT_OR_NOTHROW
 

Function Documentation

§ abs()

template<typename FloatType , enable_if_t< std::is_floating_point< FloatType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR FloatType dxle::math::abs ( FloatType  x)
inline

Definition at line 28 of file abs.hpp.

§ copysign() [1/2]

template<typename FloatType , enable_if_t< std::is_floating_point< FloatType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR FloatType dxle::math::copysign ( FloatType  x,
FloatType  y 
)
inline

Definition at line 47 of file copysign.hpp.

§ copysign() [2/2]

template<typename ArithmeticType1 , typename ArithmeticType2 , enable_if_t< std::is_arithmetic< ArithmeticType1 >::value &&std::is_arithmetic< ArithmeticType2 >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR dxle::float_promote_t<ArithmeticType1, ArithmeticType2> dxle::math::copysign ( ArithmeticType1  x,
ArithmeticType2  y 
)
inline

Definition at line 68 of file copysign.hpp.

§ fabs() [1/2]

template<typename FloatType , enable_if_t< std::is_floating_point< FloatType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR FloatType dxle::math::fabs ( FloatType  x)
inline

Definition at line 27 of file fabs.hpp.

§ fabs() [2/2]

template<typename IntType , enable_if_t< std::is_integral< IntType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR double dxle::math::fabs ( IntType  x)
inline

Definition at line 36 of file fabs.hpp.

§ isnan() [1/2]

template<typename FloatType , enable_if_t< std::is_floating_point< FloatType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR bool dxle::math::isnan ( FloatType  x)
inline

Definition at line 25 of file isnan.hpp.

§ isnan() [2/2]

template<typename IntType , enable_if_t< std::is_integral< IntType >::value > = nullptr>
DXLE_CONSTEXPR bool dxle::math::isnan ( IntType  )
inline

Definition at line 27 of file isnan.hpp.