MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
mfem::KDTree< Tindex, Tfloat, ndim, Tnorm >::PointND Struct Reference

#include <kdtree.hpp>

Public Member Functions

 PointND ()
 Default constructor: fill with zeros.
 
 PointND (const Tfloat *xx_)
 Copy coordinates from pointer/array xx_.
 

Public Attributes

Tfloat xx [ndim]
 Coordinates of the point.
 

Detailed Description

template<typename Tindex, typename Tfloat, size_t ndim = 3, typename Tnorm = KDTreeNorms::Norm_l2<Tfloat,ndim>>
struct mfem::KDTree< Tindex, Tfloat, ndim, Tnorm >::PointND

Structure defining a geometric point in the ndim-dimensional space. The coordinate type (Tfloat) can be any floating or integer type. It can be even a character if necessary. For such types users should redefine the norms.

Definition at line 126 of file kdtree.hpp.

Constructor & Destructor Documentation

◆ PointND() [1/2]

template<typename Tindex , typename Tfloat , size_t ndim = 3, typename Tnorm = KDTreeNorms::Norm_l2<Tfloat,ndim>>
mfem::KDTree< Tindex, Tfloat, ndim, Tnorm >::PointND::PointND ( )
inline

Default constructor: fill with zeros.

Definition at line 129 of file kdtree.hpp.

◆ PointND() [2/2]

template<typename Tindex , typename Tfloat , size_t ndim = 3, typename Tnorm = KDTreeNorms::Norm_l2<Tfloat,ndim>>
mfem::KDTree< Tindex, Tfloat, ndim, Tnorm >::PointND::PointND ( const Tfloat *  xx_)
inline

Copy coordinates from pointer/array xx_.

Definition at line 131 of file kdtree.hpp.

Member Data Documentation

◆ xx

template<typename Tindex , typename Tfloat , size_t ndim = 3, typename Tnorm = KDTreeNorms::Norm_l2<Tfloat,ndim>>
Tfloat mfem::KDTree< Tindex, Tfloat, ndim, Tnorm >::PointND::xx[ndim]

Coordinates of the point.

Definition at line 133 of file kdtree.hpp.


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