OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
std::hash< Slic3r::GridPoint3 > Struct Reference

Public Member Functions

size_t operator() (const Slic3r::GridPoint3 &pp) const noexcept

Detailed Description

Member Function Documentation

◆ operator()()

size_t std::hash< Slic3r::GridPoint3 >::operator() ( const Slic3r::GridPoint3 & pp) const
inlinenoexcept
30 {
31 static int prime = 31;
32 int result = 89;
33 result = static_cast<int>(result * prime + pp.x());
34 result = static_cast<int>(result * prime + pp.y());
35 result = static_cast<int>(result * prime + pp.z());
36 return static_cast<size_t>(result);
37 }

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