PCL
Complex Rounding Functions

Functions

template<typename T >
Complex< T > pcl::Round (const Complex< T > &c)
 
template<typename T >
Complex< T > pcl::Round (const Complex< T > &c, int n)
 

Detailed Description

Function Documentation

◆ Round() [1/2]

template<typename T >
Complex<T> pcl::Round ( const Complex< T > &  c)
inline

Complex rounding. Returns a complex number whose components are the components of a specified complex c rounded to their nearest integers.

Definition at line 929 of file Complex.h.

References pcl::Complex< T >::Imag(), and pcl::Complex< T >::Real().

Referenced by pcl::GenericPoint< T >::Round(), pcl::Round(), pcl::GenericRectangle< T >::Round(), pcl::GenericPoint< T >::Rounded(), pcl::GenericRectangle< T >::Rounded(), pcl::RoundInt64(), pcl::UInt8PixelTraits::ToSample(), and pcl::UInt16PixelTraits::ToSample().

◆ Round() [2/2]

template<typename T >
Complex<T> pcl::Round ( const Complex< T > &  c,
int  n 
)
inline

Complex rounding. Returns a complex number whose components are the components of a specified complex c rounded to the specified number of decimal digits n.

Definition at line 941 of file Complex.h.

References pcl::Complex< T >::Imag(), pcl::Complex< T >::Real(), and pcl::Round().