#include <BLI_kdtree_new.hh>
template<typename Query, typename ValueT>
concept QueryType =
requires(Query &query,
const ValueT distance_sq,
const int index) {
{
Tells the search whether points exactly #max_distance_sq away should be processed.
Query::inclusive
} -> std::convertible_to<bool>;
{
Optionally store a result index and tell the search when to continue.
query.add_point(distance_sq,
index)
} -> std::convertible_to<bool>;
{
Return the distance below which the search will stop.
query.max_distance_sq()
} -> std::convertible_to<ValueT>;
}
A type usable as the Query for #KDTreeNew::search, responsible for storing results and telling the search when to continue. See #NearestResult and the others beside it.
Definition at line 59 of file BLI_kdtree_new.hh.