PCL
pcl::Const< T > Class Template Reference

Fundamental numeric constants. More...

#include <Constants.h>

Static Public Member Functions

static constexpr T _1_pi ()
 
static constexpr T _1_sqrt2 ()
 
static constexpr T _2_pi ()
 
static constexpr T _2_sqrtpi ()
 
static constexpr T _2pi ()
 
static constexpr T _3pi2 ()
 
static constexpr T _3pi4 ()
 
static constexpr T _5pi4 ()
 
static constexpr T _7pi4 ()
 
static constexpr T deg ()
 
static constexpr T e ()
 
static constexpr T ln10 ()
 
static constexpr T ln2 ()
 
static constexpr T log102 ()
 
static constexpr T log10e ()
 
static constexpr T log210 ()
 
static constexpr T log2e ()
 
static constexpr T pi ()
 
static constexpr T pi2 ()
 
static constexpr T pi4 ()
 
static constexpr T rad ()
 
static constexpr T sqrt2 ()
 
static constexpr T sqrt2_2 ()
 

Detailed Description

template<typename T>
class pcl::Const< T >

Specialize this class to obtain constants of the appropriate floating-point types. For example: Const<double>::pi()

Definition at line 72 of file Constants.h.

Member Function Documentation

◆ _1_pi()

template<typename T >
static constexpr T pcl::Const< T >::_1_pi ( )
inlinestaticconstexpr

1/pi

Definition at line 119 of file Constants.h.

◆ _1_sqrt2()

template<typename T >
static constexpr T pcl::Const< T >::_1_sqrt2 ( )
inlinestaticconstexpr

1/sqrt( 2 ) = sqrt( 2 )/2

Definition at line 184 of file Constants.h.

◆ _2_pi()

template<typename T >
static constexpr T pcl::Const< T >::_2_pi ( )
inlinestaticconstexpr

2/pi

Definition at line 124 of file Constants.h.

◆ _2_sqrtpi()

template<typename T >
static constexpr T pcl::Const< T >::_2_sqrtpi ( )
inlinestaticconstexpr

2/sqrt( pi )

Definition at line 129 of file Constants.h.

◆ _2pi()

template<typename T >
static constexpr T pcl::Const< T >::_2pi ( )
inlinestaticconstexpr

2*pi (360 degrees)

Definition at line 114 of file Constants.h.

◆ _3pi2()

template<typename T >
static constexpr T pcl::Const< T >::_3pi2 ( )
inlinestaticconstexpr

3*pi/2 (270 degrees)

Definition at line 104 of file Constants.h.

◆ _3pi4()

template<typename T >
static constexpr T pcl::Const< T >::_3pi4 ( )
inlinestaticconstexpr

3*pi/4 (135 degrees)

Definition at line 89 of file Constants.h.

◆ _5pi4()

template<typename T >
static constexpr T pcl::Const< T >::_5pi4 ( )
inlinestaticconstexpr

5*pi/4 (225 degrees)

Definition at line 99 of file Constants.h.

◆ _7pi4()

template<typename T >
static constexpr T pcl::Const< T >::_7pi4 ( )
inlinestaticconstexpr

7*pi/4 (315 degrees)

Definition at line 109 of file Constants.h.

◆ deg()

template<typename T >
static constexpr T pcl::Const< T >::deg ( )
inlinestaticconstexpr

180/pi - the radians-to-degrees conversion factor.

Definition at line 134 of file Constants.h.

◆ e()

template<typename T >
static constexpr T pcl::Const< T >::e ( )
inlinestaticconstexpr

The Euler constant e.

Definition at line 144 of file Constants.h.

◆ ln10()

template<typename T >
static constexpr T pcl::Const< T >::ln10 ( )
inlinestaticconstexpr

ln( 10 )

Definition at line 174 of file Constants.h.

◆ ln2()

template<typename T >
static constexpr T pcl::Const< T >::ln2 ( )
inlinestaticconstexpr

ln( 2 )

Definition at line 169 of file Constants.h.

◆ log102()

template<typename T >
static constexpr T pcl::Const< T >::log102 ( )
inlinestaticconstexpr

log10( 2 )

Definition at line 164 of file Constants.h.

◆ log10e()

template<typename T >
static constexpr T pcl::Const< T >::log10e ( )
inlinestaticconstexpr

log10( e )

Definition at line 159 of file Constants.h.

Referenced by pcl::Log().

◆ log210()

template<typename T >
static constexpr T pcl::Const< T >::log210 ( )
inlinestaticconstexpr

log2( 10 )

Definition at line 154 of file Constants.h.

◆ log2e()

template<typename T >
static constexpr T pcl::Const< T >::log2e ( )
inlinestaticconstexpr

log2( e )

Definition at line 149 of file Constants.h.

◆ pi()

template<typename T >
static constexpr T pcl::Const< T >::pi ( )
inlinestaticconstexpr

The pi constant (180 degrees)

Definition at line 94 of file Constants.h.

Referenced by pcl::AstrometricMetadata::ResolutionFromFocal().

◆ pi2()

template<typename T >
static constexpr T pcl::Const< T >::pi2 ( )
inlinestaticconstexpr

pi/2 (90 degrees)

Definition at line 84 of file Constants.h.

◆ pi4()

template<typename T >
static constexpr T pcl::Const< T >::pi4 ( )
inlinestaticconstexpr

pi/4 (45 degrees)

Definition at line 79 of file Constants.h.

◆ rad()

template<typename T >
static constexpr T pcl::Const< T >::rad ( )
inlinestaticconstexpr

Pi/180 - the degrees-to-radians conversion factor.

Definition at line 139 of file Constants.h.

◆ sqrt2()

template<typename T >
static constexpr T pcl::Const< T >::sqrt2 ( )
inlinestaticconstexpr

sqrt( 2 )

Definition at line 179 of file Constants.h.

◆ sqrt2_2()

template<typename T >
static constexpr T pcl::Const< T >::sqrt2_2 ( )
inlinestaticconstexpr

sqrt( 2 )/2 = 1/sqrt( 2 )

Definition at line 189 of file Constants.h.


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