mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
20 lines
400 B
C++
20 lines
400 B
C++
#include "stdafx.h"
|
|
|
|
#include "Util/Vector3int32.h"
|
|
|
|
namespace RBX {
|
|
|
|
std::ostream& operator<<(std::ostream& os, const Vector3int32& v) {
|
|
return os << G3D::format("(%d, %d, %d)", v.x, v.y, v.z);
|
|
}
|
|
|
|
::std::size_t hash_value(const RBX::Vector3int32& v)
|
|
{
|
|
size_t seed = 0;
|
|
boost::hash_combine(seed, v.x);
|
|
boost::hash_combine(seed, v.y);
|
|
boost::hash_combine(seed, v.z);
|
|
return seed;
|
|
}
|
|
}
|