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

an NDim dimensional hyperrectangle, represented as a min and max extent More...

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

Public Types

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

Public Member Functions

Format_t dist2 (const Point_t &point)
 find the nearest point in the hyper-rectangle to the query point and return it's distance (squared) More...
 
 HyperRect ()
 initialize min and max ext to be 0,0,... More...
 
Format_t measure ()
 return the measure of the hypercube More...
 

Public Attributes

Point_t maxExt
 maximum extent of hyper-rectangle More...
 
Point_t minExt
 minimum extent of hyper-rectangle More...
 

Detailed Description

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

an NDim dimensional hyperrectangle, represented as a min and max extent

implemented by storing the minimum and maximum extent of the hyper-rectangle in all dimensions

Definition at line 23 of file HyperRect.h.

Member Typedef Documentation

Definition at line 25 of file HyperRect.h.

template<class Traits >
typedef Vector_t mpblocks::kd_tree::euclidean::HyperRect< Traits >::Point_t

Definition at line 27 of file HyperRect.h.

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

Definition at line 26 of file HyperRect.h.

Constructor & Destructor Documentation

template<class Traits >
mpblocks::kd_tree::euclidean::HyperRect< Traits >::HyperRect ( )

initialize min and max ext to be 0,0,...

Definition at line 20 of file HyperRect.hpp.

Member Function Documentation

template<class Traits >
Traits::Format_t mpblocks::kd_tree::euclidean::HyperRect< Traits >::dist2 ( const Point_t point)

find the nearest point in the hyper-rectangle to the query point and return it's distance (squared)

Definition at line 32 of file HyperRect.hpp.

template<class Traits >
Traits::Format_t mpblocks::kd_tree::euclidean::HyperRect< Traits >::measure ( )

return the measure of the hypercube

Definition at line 57 of file HyperRect.hpp.

Member Data Documentation

template<class Traits >
Point_t mpblocks::kd_tree::euclidean::HyperRect< Traits >::maxExt

maximum extent of hyper-rectangle

Definition at line 30 of file HyperRect.h.

template<class Traits >
Point_t mpblocks::kd_tree::euclidean::HyperRect< Traits >::minExt

minimum extent of hyper-rectangle

Definition at line 29 of file HyperRect.h.


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