Rosetta
Public Types | Static Public Member Functions | List of all members
numeric::NumericTraits< T > Struct Template Reference

NumericTraits: Numeric type traits. More...

#include <NumericTraits.hh>

Public Types

typedef T Type
 

Static Public Member Functions

constexpr static Type zero ()
 Zero. More...
 
constexpr static Type one ()
 One. More...
 
constexpr static Type two ()
 Two. More...
 
constexpr static Type pi ()
 pi More...
 
constexpr static Type pi_2 ()
 2*pi More...
 
constexpr static Type pi_over_2 ()
 pi/2 More...
 
constexpr static Type pi_over_3 ()
 pi/3 More...
 
constexpr static Type pi_over_4 ()
 pi/4 More...
 
constexpr static Type pi_2_over_3 ()
 (2*pi)/3 More...
 
constexpr static Type pi_3_over_4 ()
 (3*pi)/4 More...
 
constexpr static Type pi_over_180 ()
 pi/180 More...
 
constexpr static Type degrees_to_radians ()
 pi/180 More...
 
constexpr static Type deg2rad ()
 pi/180 More...
 
constexpr static Type radians_to_degrees ()
 180/pi More...
 
constexpr static Type rad2deg ()
 180/pi More...
 
constexpr static Type sqrt_2pi ()
 sqrt(2*pi) More...
 

Detailed Description

template<typename T>
struct numeric::NumericTraits< T >

NumericTraits: Numeric type traits.

Member Typedef Documentation

◆ Type

template<typename T >
typedef T numeric::NumericTraits< T >::Type

Member Function Documentation

◆ deg2rad()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::deg2rad ( )
inlinestaticconstexpr

pi/180

◆ degrees_to_radians()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::degrees_to_radians ( )
inlinestaticconstexpr

◆ one()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::one ( )
inlinestaticconstexpr

One.

◆ pi()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::pi ( )
inlinestaticconstexpr

◆ pi_2()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::pi_2 ( )
inlinestaticconstexpr

◆ pi_2_over_3()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::pi_2_over_3 ( )
inlinestaticconstexpr

(2*pi)/3

◆ pi_3_over_4()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::pi_3_over_4 ( )
inlinestaticconstexpr

(3*pi)/4

◆ pi_over_180()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::pi_over_180 ( )
inlinestaticconstexpr

◆ pi_over_2()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::pi_over_2 ( )
inlinestaticconstexpr

◆ pi_over_3()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::pi_over_3 ( )
inlinestaticconstexpr

pi/3

◆ pi_over_4()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::pi_over_4 ( )
inlinestaticconstexpr

pi/4

◆ rad2deg()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::rad2deg ( )
inlinestaticconstexpr

180/pi

◆ radians_to_degrees()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::radians_to_degrees ( )
inlinestaticconstexpr

◆ sqrt_2pi()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::sqrt_2pi ( )
inlinestaticconstexpr

sqrt(2*pi)

◆ two()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::two ( )
inlinestaticconstexpr

Two.

◆ zero()

template<typename T >
constexpr static Type numeric::NumericTraits< T >::zero ( )
inlinestaticconstexpr

Zero.


The documentation for this struct was generated from the following file: