Exemplo n.º 1
0
 size_t operator()(const Vec3Type & vec) const
 {
   size_t h = 0;
   boost::hash_combine(h, vec.x());
   boost::hash_combine(h, vec.y());
   boost::hash_combine(h, vec.z());
   return h;
 }
Exemplo n.º 2
0
std::string MapImpl::getChunkName(const Vec3Type & v) const
{
    return boost::str(boost::format("%i.%i.%i") % v.x() % v.y() % v.z());
}