cml::constants< Float > Struct Template Reference

Templated constants struct. More...

#include <constants.h>

List of all members.

Static Public Member Functions

static Float deg_per_rad ()
static Float e ()
static Float inv_pi ()
static Float inv_two_pi ()
static Float pi ()
static Float pi_over_2 ()
static Float pi_over_4 ()
static Float rad_per_deg ()
static Float sqrt_2 ()
static Float sqrt_3 ()
static Float sqrt_5 ()
static Float sqrt_6 ()
static Float two_pi ()


Detailed Description

template<typename Float>
struct cml::constants< Float >

Templated constants struct.

Either float or double can be used.

Definition at line 39 of file constants.h.


Member Function Documentation

template<typename Float >
static Float cml::constants< Float >::deg_per_rad (  )  [inline, static]

Definition at line 46 of file constants.h.

References M_PI.

Referenced by cml::deg().

Here is the caller graph for this function:

template<typename Float >
static Float cml::constants< Float >::e (  )  [inline, static]

Definition at line 54 of file constants.h.

References M_E.

template<typename Float >
static Float cml::constants< Float >::inv_pi (  )  [inline, static]

Definition at line 42 of file constants.h.

References M_PI.

template<typename Float >
static Float cml::constants< Float >::inv_two_pi (  )  [inline, static]

Definition at line 43 of file constants.h.

References M_PI.

template<typename Float >
static Float cml::constants< Float >::pi (  )  [inline, static]

Definition at line 40 of file constants.h.

References M_PI.

Referenced by cml::matrix_to_axis_angle().

Here is the caller graph for this function:

template<typename Float >
static Float cml::constants< Float >::pi_over_2 (  )  [inline, static]

Definition at line 44 of file constants.h.

References M_PI.

Referenced by cml::cartesian_to_spherical(), and cml::spherical_to_cartesian().

Here is the caller graph for this function:

template<typename Float >
static Float cml::constants< Float >::pi_over_4 (  )  [inline, static]

Definition at line 45 of file constants.h.

References M_PI.

template<typename Float >
static Float cml::constants< Float >::rad_per_deg (  )  [inline, static]

Definition at line 47 of file constants.h.

References M_PI.

Referenced by cml::rad().

Here is the caller graph for this function:

template<typename Float >
static Float cml::constants< Float >::sqrt_2 (  )  [inline, static]

Definition at line 49 of file constants.h.

References M_SQRT2.

template<typename Float >
static Float cml::constants< Float >::sqrt_3 (  )  [inline, static]

Definition at line 50 of file constants.h.

template<typename Float >
static Float cml::constants< Float >::sqrt_5 (  )  [inline, static]

Definition at line 51 of file constants.h.

template<typename Float >
static Float cml::constants< Float >::sqrt_6 (  )  [inline, static]

Definition at line 52 of file constants.h.

template<typename Float >
static Float cml::constants< Float >::two_pi (  )  [inline, static]

Definition at line 41 of file constants.h.

References M_PI.


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

Generated on Sat Jul 18 19:35:38 2009 for CML 1.0 by  doxygen 1.5.9