OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::LineHash Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Support/TreeSupport.hpp>

Public Member Functions

size_t operator() (const Line &line) const

Detailed Description

Member Function Documentation

◆ operator()()

size_t Slic3r::LineHash::operator() ( const Line & line) const
inline
359 {
360 return (std::hash<coord_t>()(line.a(0)) ^ std::hash<coord_t>()(line.b(1))) * 102 +
361 (std::hash<coord_t>()(line.a(1)) ^ std::hash<coord_t>()(line.b(0))) * 10222;
362 }

References Slic3r::Line::a, and Slic3r::Line::b.


The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Support/TreeSupport.hpp