Template Struct ResultItem
Defined in File nanoflann.hpp
Struct Documentation
-
template<typename IndexType = size_t, typename DistanceType = double>
struct ResultItem Each result element in RadiusResultSet. Note that distances and indices are named
first
andsecond
to keep backward-compatibility with thestd::pair<>
type used in the past. In contrast, this structure is ensured to bestd::is_standard_layout
so it can be used in wrappers to other languages. See: https://github.com/jlblancoc/nanoflann/issues/166Public Functions
-
ResultItem() = default
-
inline ResultItem(const IndexType index, const DistanceType distance)
Public Members
-
DistanceType second
Distance from sample to query point.
-
ResultItem() = default