ground_segmentation 1.0
Ground segmentation in pointcloud
Loading...
Searching...
No Matches
ground_segmentation::Index3D::HashFunction Struct Reference

#include <ground_detection_types.hpp>

Public Member Functions

size_t operator() (Index3D const &ind) const
 

Detailed Description

Definition at line 155 of file ground_detection_types.hpp.

Member Function Documentation

◆ operator()()

size_t ground_segmentation::Index3D::HashFunction::operator() ( Index3D const &  ind) const
inline

Definition at line 157 of file ground_detection_types.hpp.

158 {
159 size_t xx = ind.x, yy = ind.y, zz = ind.z;
160 // distribute bits equally over 64bits
161 return (xx) ^ (yy << 21) ^ ((zz << 42) | (zz >> 22));
162 }

References ground_segmentation::Index3D::x, ground_segmentation::Index3D::y, and ground_segmentation::Index3D::z.


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