Public Types | Public Member Functions | Public Attributes | List of all members
nanoflann::SO2_Adaptor< T, DataSource, _DistanceType > Struct Template Reference

#include <nanoflann.hpp>

Public Types

typedef _DistanceType DistanceType
 
typedef T ElementType
 

Public Member Functions

template<typename U , typename V >
DistanceType accum_dist (const U a, const V b, const size_t) const
 
DistanceType evalMetric (const T *a, const size_t b_idx, size_t size) const
 
 SO2_Adaptor (const DataSource &_data_source)
 

Public Attributes

const DataSource & data_source
 

Detailed Description

template<class T, class DataSource, typename _DistanceType = T>
struct nanoflann::SO2_Adaptor< T, DataSource, _DistanceType >

SO2 distance functor Corresponding distance traits: nanoflann::metric_SO2

Template Parameters
TType of the elements (e.g. double, float)
_DistanceTypeType of distance variables (must be signed) (e.g. float, double) orientation is constrained to be in [-pi, pi]

Definition at line 455 of file nanoflann.hpp.

Member Typedef Documentation

◆ DistanceType

template<class T , class DataSource , typename _DistanceType = T>
typedef _DistanceType nanoflann::SO2_Adaptor< T, DataSource, _DistanceType >::DistanceType

Definition at line 457 of file nanoflann.hpp.

◆ ElementType

template<class T , class DataSource , typename _DistanceType = T>
typedef T nanoflann::SO2_Adaptor< T, DataSource, _DistanceType >::ElementType

Definition at line 456 of file nanoflann.hpp.

Constructor & Destructor Documentation

◆ SO2_Adaptor()

template<class T , class DataSource , typename _DistanceType = T>
nanoflann::SO2_Adaptor< T, DataSource, _DistanceType >::SO2_Adaptor ( const DataSource &  _data_source)
inline

Definition at line 461 of file nanoflann.hpp.

Member Function Documentation

◆ accum_dist()

template<class T , class DataSource , typename _DistanceType = T>
template<typename U , typename V >
DistanceType nanoflann::SO2_Adaptor< T, DataSource, _DistanceType >::accum_dist ( const U  a,
const V  b,
const  size_t 
) const
inline

Note: this assumes that input angles are already in the range [-pi,pi]

Definition at line 471 of file nanoflann.hpp.

◆ evalMetric()

template<class T , class DataSource , typename _DistanceType = T>
DistanceType nanoflann::SO2_Adaptor< T, DataSource, _DistanceType >::evalMetric ( const T *  a,
const size_t  b_idx,
size_t  size 
) const
inline

Definition at line 463 of file nanoflann.hpp.

Member Data Documentation

◆ data_source

template<class T , class DataSource , typename _DistanceType = T>
const DataSource& nanoflann::SO2_Adaptor< T, DataSource, _DistanceType >::data_source

Definition at line 459 of file nanoflann.hpp.


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


mesh_map
Author(s): Sebastian Pütz
autogenerated on Thu Jan 25 2024 03:42:46