Ponca  aa50bfdf187919869239c5b44b748842569114c1
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::IndexSquaredDistance< Index, Scalar > Struct Template Reference

Associates an index with a distance. More...

#include <indexSquaredDistance.h>

+ Inheritance diagram for Ponca::IndexSquaredDistance< Index, Scalar >:
+ Collaboration diagram for Ponca::IndexSquaredDistance< Index, Scalar >:

Public Member Functions

bool operator< (const IndexSquaredDistance &other) const
 Comparison operator based on squared_distance.
 

Public Attributes

Index index {-1}
 
Scalar squared_distance { std::numeric_limits<Scalar>::max() }
 Distance to the closest point.
 

Detailed Description

template<typename Index, typename Scalar>
struct Ponca::IndexSquaredDistance< Index, Scalar >

Associates an index with a distance.

Definition at line 18 of file indexSquaredDistance.h.

Member Function Documentation

◆ operator<()

template<typename Index , typename Scalar >
bool Ponca::IndexSquaredDistance< Index, Scalar >::operator< ( const IndexSquaredDistance< Index, Scalar > &  other) const
inline

Comparison operator based on squared_distance.

Definition at line 27 of file indexSquaredDistance.h.

Member Data Documentation

◆ index

template<typename Index , typename Scalar >
Index Ponca::IndexSquaredDistance< Index, Scalar >::index {-1}

Definition at line 21 of file indexSquaredDistance.h.

◆ squared_distance

template<typename Index , typename Scalar >
Scalar Ponca::IndexSquaredDistance< Index, Scalar >::squared_distance { std::numeric_limits<Scalar>::max() }

Distance to the closest point.

Definition at line 24 of file indexSquaredDistance.h.