DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions
DGtal::functors::VectorRounding< TRealVector, TVector > Struct Template Reference

#include <DGtal/kernel/BasicPointFunctors.h>

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 812 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 816 of file BasicPointFunctors.h.

817 {
818 TVector out;
819 for ( unsigned int i = 0; i < TVector::dimension; i++ )
820 out[i] = std::round ( point[i] );
821 return out;
822 }

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