cheshirekow  v0.1.0
mpblocks::kd_tree::euclidean::Distance< Traits > Struct Template Reference

provides euclidean distance computation More...

#include <mpblocks/kd_tree/euclidean/Distance.h>

Public Types

typedef Traits::Format_t Format_t
 
typedef HyperRect< TraitsHyper_t
 
typedef Eigen::Matrix
< Format_t, Traits::NDim, 1 > 
Point_t
 

Public Member Functions

Format_t operator() (const Point_t &pa, const Point_t &pb)
 return the euclidean distance between two points More...
 
Format_t operator() (const Point_t &p, const Hyper_t &h)
 return the euclidean distance between a point and hyper rectangle More...
 

Detailed Description

template<class Traits>
struct mpblocks::kd_tree::euclidean::Distance< Traits >

provides euclidean distance computation

Definition at line 38 of file Distance.h.

Member Typedef Documentation

Definition at line 41 of file Distance.h.

Definition at line 43 of file Distance.h.

template<class Traits >
typedef Eigen::Matrix<Format_t,Traits::NDim,1> mpblocks::kd_tree::euclidean::Distance< Traits >::Point_t

Definition at line 42 of file Distance.h.

Member Function Documentation

template<class Traits >
Traits::Format_t mpblocks::kd_tree::euclidean::Distance< Traits >::operator() ( const Point_t pa,
const Point_t pb 
)

return the euclidean distance between two points

Definition at line 38 of file Distance.hpp.

template<class Traits >
Traits::Format_t mpblocks::kd_tree::euclidean::Distance< Traits >::operator() ( const Point_t p,
const Hyper_t h 
)

return the euclidean distance between a point and hyper rectangle

Definition at line 45 of file Distance.hpp.


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