PlayRho  2.0.0
An interactive physics engine & library.
Math Functions For Checked Types

Common Mathematical Functions For Checked Types. More...

Functions

template<class ValueType , class Checker , bool NoExcept>
auto playrho::detail::abs (const Checked< ValueType, Checker, NoExcept > &arg) -> decltype(Checked< ValueType, Checker, false >(abs(arg.get())))
 Computes the absolute value. More...
 
template<class ValueType , class Checker , bool NoExcept>
auto playrho::detail::nextafter (const Checked< ValueType, Checker, NoExcept > &from, const Checked< ValueType, Checker, NoExcept > &to) -> decltype(Checked< ValueType, Checker, false >(nextafter(from.get(), to.get())))
 Next after function. More...
 

Detailed Description

Common Mathematical Functions For Checked Types.

See also
Checked
https://en.cppreference.com/w/cpp/numeric/math

Function Documentation

◆ abs()

template<class ValueType , class Checker , bool NoExcept>
auto playrho::detail::abs ( const Checked< ValueType, Checker, NoExcept > &  arg) -> decltype(Checked<ValueType, Checker, false>(abs(arg.get())))

Computes the absolute value.

See also
https://en.cppreference.com/w/cpp/numeric/math/fabs

◆ nextafter()

template<class ValueType , class Checker , bool NoExcept>
auto playrho::detail::nextafter ( const Checked< ValueType, Checker, NoExcept > &  from,
const Checked< ValueType, Checker, NoExcept > &  to 
) -> decltype(Checked<ValueType, Checker, false>(nextafter(from.get(), to.get())))