Volume Cartographer 2.27.0
Public Member Functions | List of all members
volcart::Vec3Hash< Vector > Struct Template Reference

#include <vc/core/util/HashFunctions.hpp>

Public Member Functions

std::size_t operator() (const Vector &v) const
 

Detailed Description

template<class Vector>
struct volcart::Vec3Hash< Vector >

Hash for 3D vector types. Must support []-operator. It's designed for integer types, and only makes sense for positive integer values, so don't expect much if using with floating-point types.

Uses the hash function from: https://dmauro.com/post/77011214305/a-hashing-function-for-x-y-z-coordinates

Definition at line 21 of file HashFunctions.hpp.

Member Function Documentation

◆ operator()()

template<class Vector >
std::size_t volcart::Vec3Hash< Vector >::operator() ( const Vector &  v) const
inline

Definition at line 22 of file HashFunctions.hpp.


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