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 ( )
inlinestatic

1/pi

Definition at line 119 of file Constants.h.

◆ _1_sqrt2()

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

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

Definition at line 184 of file Constants.h.

Referenced by pcl::HammerAitoffProjection::Name().

◆ _2_pi()

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

2/pi

Definition at line 124 of file Constants.h.

◆ _2_sqrtpi()

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

2/sqrt( pi )

Definition at line 129 of file Constants.h.

◆ _2pi()

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

2*pi (360 degrees)

Definition at line 114 of file Constants.h.

Referenced by pcl::RGBColorSystem::CIEh(), and pcl::PolarTransformBase::GetNewSizes().

◆ _3pi2()

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

3*pi/2 (270 degrees)

Definition at line 104 of file Constants.h.

◆ _3pi4()

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

3*pi/4 (135 degrees)

Definition at line 89 of file Constants.h.

◆ _5pi4()

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

5*pi/4 (225 degrees)

Definition at line 99 of file Constants.h.

◆ _7pi4()

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

7*pi/4 (315 degrees)

Definition at line 109 of file Constants.h.

◆ deg()

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

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

Definition at line 134 of file Constants.h.

Referenced by pcl::MercatorProjection::Name(), pcl::OrthographicProjection::Name(), and pcl::GnomonicProjection::Unproject().

◆ e()

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

The Euler constant e.

Definition at line 144 of file Constants.h.

◆ ln10()

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

ln( 10 )

Definition at line 174 of file Constants.h.

◆ ln2()

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

ln( 2 )

Definition at line 169 of file Constants.h.

◆ log102()

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

log10( 2 )

Definition at line 164 of file Constants.h.

◆ log10e()

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

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 ( )
inlinestatic

log2( 10 )

Definition at line 154 of file Constants.h.

◆ log2e()

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

log2( e )

Definition at line 149 of file Constants.h.

◆ pi()

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

The pi constant (180 degrees)

Definition at line 94 of file Constants.h.

◆ pi2()

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

pi/2 (90 degrees)

Definition at line 84 of file Constants.h.

◆ pi4()

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

pi/4 (45 degrees)

Definition at line 79 of file Constants.h.

◆ rad()

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

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 ( )
inlinestatic

sqrt( 2 )

Definition at line 179 of file Constants.h.

◆ sqrt2_2()

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

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: