MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / _skr_hash

Method _skr_hash

modules/gui/gui/include/SkrGui/math/vector.hpp:93–100  ·  view source on GitHub ↗

hash

Source from the content-addressed store, hash-verified

91
92 // hash
93 inline static constexpr size_t _skr_hash(const Vector3& v) SKR_NOEXCEPT
94 {
95 auto hasher = ::skr::Hash<float>{};
96 auto hash = hasher(v.x);
97 hash = ::skr::hash_combine(hash, hasher(v.y));
98 hash = ::skr::hash_combine(hash, hasher(v.z));
99 return hash;
100 }
101
102 float x, y, z;
103};

Callers

nothing calls this directly

Calls 2

hasherClass · 0.50
hash_combineFunction · 0.50

Tested by

no test coverage detected