DGtal  1.3.beta
Public Member Functions
DGtal::functors::VectorRounding< TRealVector, TVector > Struct Template Reference

#include <DGtal/kernel/BasicPointFunctors.h>

Inheritance diagram for DGtal::functors::VectorRounding< TRealVector, TVector >:
[legend]

Public Member Functions

 BOOST_STATIC_ASSERT ((TRealVector::dimension==TVector::dimension))
 
TVector operator() (const TRealVector &point) const
 

Detailed Description

template<typename TRealVector, typename TVector>
struct DGtal::functors::VectorRounding< TRealVector, TVector >

Definition at line 765 of file BasicPointFunctors.h.

Member Function Documentation

◆ BOOST_STATIC_ASSERT()

template<typename TRealVector , typename TVector >
DGtal::functors::VectorRounding< TRealVector, TVector >::BOOST_STATIC_ASSERT ( (TRealVector::dimension==TVector::dimension)  )

◆ operator()()

template<typename TRealVector , typename TVector >
TVector DGtal::functors::VectorRounding< TRealVector, TVector >::operator() ( const TRealVector &  point) const
inline

Definition at line 769 of file BasicPointFunctors.h.

770  {
771  TVector out;
772  for ( unsigned int i = 0; i < TVector::dimension; i++ )
773  out[i] = std::round ( point[i] );
774  return out;
775  }

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