Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
k_d_tree::SortedPoints< Dim, Component > Class Template Reference

#include <k_d_tree.h>

Public Member Functions

 SortedPoints ()
 
 SortedPoints (const std::array< Component, Dim > &point)
 Single point.
 
 SortedPoints (size_t n, const std::array< Component const *, Dim > ptrs)
 Sort points.
 
 SortedPoints (const SortedPoints &a, const SortedPoints &b)
 Merge two sets of sorted points.
 
size_t size () const
 

Public Attributes

Points< Dim, Component > points
 
SortedIndices< Dim > indices
 

Constructor & Destructor Documentation

◆ SortedPoints() [1/4]

template<uint8_t Dim, class Component >
k_d_tree::SortedPoints< Dim, Component >::SortedPoints ( )
inline

◆ SortedPoints() [2/4]

template<uint8_t Dim, class Component >
k_d_tree::SortedPoints< Dim, Component >::SortedPoints ( const std::array< Component, Dim > & point)
inline

◆ SortedPoints() [3/4]

template<uint8_t Dim, class Component >
k_d_tree::SortedPoints< Dim, Component >::SortedPoints ( size_t n,
const std::array< Component const *, Dim > ptrs )
inline

◆ SortedPoints() [4/4]

template<uint8_t Dim, class Component >
k_d_tree::SortedPoints< Dim, Component >::SortedPoints ( const SortedPoints< Dim, Component > & a,
const SortedPoints< Dim, Component > & b )
inline

Merge two sets of sorted points.

References k_d_tree::SortedPoints< Dim, Component >::indices, k_d_tree::SortedIndices< Dim >::newUninitialized(), k_d_tree::SortedPoints< Dim, Component >::points, and k_d_tree::SortedPoints< Dim, Component >::size().

+ Here is the call graph for this function:

Member Function Documentation

◆ size()

template<uint8_t Dim, class Component >
size_t k_d_tree::SortedPoints< Dim, Component >::size ( ) const
inline

References k_d_tree::SortedPoints< Dim, Component >::points.

Referenced by k_d_tree::SortedPoints< Dim, Component >::SortedPoints().

+ Here is the caller graph for this function:

Member Data Documentation

◆ indices

◆ points


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