Blender V5.3
blender::kdtree::NearestQuery< ValueT > Class Template Reference

#include <BLI_kdtree_new.hh>

Public Member Functions

int index () const
ValueT distance_sq () const
bool add_point (const ValueT distance_sq, const int index)
ValueT max_distance_sq () const

Static Public Attributes

static constexpr bool inclusive = false

Detailed Description

template<typename ValueT>
class blender::kdtree::NearestQuery< ValueT >

A search for the single closest point.

Definition at line 284 of file BLI_kdtree_new.hh.

Member Function Documentation

◆ add_point()

template<typename ValueT>
bool blender::kdtree::NearestQuery< ValueT >::add_point ( const ValueT distance_sq,
const int index )
inline

Definition at line 301 of file BLI_kdtree_new.hh.

References distance_sq(), and index().

◆ distance_sq()

template<typename ValueT>
ValueT blender::kdtree::NearestQuery< ValueT >::distance_sq ( ) const
inline

Definition at line 296 of file BLI_kdtree_new.hh.

Referenced by add_point(), and blender::KDTreeNew< T >::find_nearest().

◆ index()

template<typename ValueT>
int blender::kdtree::NearestQuery< ValueT >::index ( ) const
inline

Definition at line 292 of file BLI_kdtree_new.hh.

Referenced by add_point(), and blender::KDTreeNew< T >::find_nearest().

◆ max_distance_sq()

template<typename ValueT>
ValueT blender::kdtree::NearestQuery< ValueT >::max_distance_sq ( ) const
inline

Definition at line 308 of file BLI_kdtree_new.hh.

Member Data Documentation

◆ inclusive

template<typename ValueT>
bool blender::kdtree::NearestQuery< ValueT >::inclusive = false
staticconstexpr

Definition at line 290 of file BLI_kdtree_new.hh.


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