|
HighMap library (C++)
|
Adaptor exposing a 2D point cloud to nanoflann. More...
#include <kd_tree.hpp>

Public Member Functions | |
| NanoflannPointCloudAdaptor (const std::vector< float > &x_, const std::vector< float > &y_) | |
| Construct the adaptor from coordinate arrays. | |
| size_t | kdtree_get_point_count () const |
| Get the number of points in the dataset. | |
| float | kdtree_get_pt (const size_t idx, int dim) const |
| Get a coordinate component of a point. | |
| template<class BBOX > | |
| bool | kdtree_get_bbox (BBOX &) const |
| Optional bounding-box computation (unused). | |
Public Attributes | |
| const std::vector< float > & | x |
| const std::vector< float > & | y |
Adaptor exposing a 2D point cloud to nanoflann.
This class provides the minimal interface required by nanoflann to access a set of 2D points stored as separate x and y coordinate arrays.
The data is not owned by the adaptor; it references external vectors.
| hmap::NanoflannPointCloudAdaptor::NanoflannPointCloudAdaptor | ( | const std::vector< float > & | x_, |
| const std::vector< float > & | y_ | ||
| ) |
Construct the adaptor from coordinate arrays.
| x_ | Vector of x coordinates |
| y_ | Vector of y coordinates |
|
inline |
Get the number of points in the dataset.
|
inline |
Get a coordinate component of a point.
| idx | Point index |
| dim | Dimension (0 = x, 1 = y) |
|
inline |
Optional bounding-box computation (unused).
| const std::vector<float>& hmap::NanoflannPointCloudAdaptor::x |
Reference to x coordinates
| const std::vector<float>& hmap::NanoflannPointCloudAdaptor::y |
Reference to y coordinates