16 size_t operator() (
MR::Id<T> const& p )
const noexcept
23struct hash<
MR::Vector2f>
25 size_t operator()( MR::Vector2f
const& p )
const noexcept
28 static_assert(
sizeof( float ) ==
sizeof( std::uint32_t ) );
29 std::memcpy( &xy, &p.x,
sizeof( std::uint64_t ) );
35struct hash<
MR::Vector3f>
37 size_t operator()( MR::Vector3f
const& p )
const noexcept
43 static_assert(
sizeof( float ) ==
sizeof( std::uint32_t ) );
44 std::memcpy( &xy, &p.x,
sizeof( std::uint64_t ) );
45 std::memcpy( &z, &p.z,
sizeof( std::uint32_t ) );
46 return size_t( xy ) ^ ( size_t( z ) << 16 );
Definition MRMesh/MRId.h:13
Definition MRCameraOrientationPlugin.h:8