Skip to content

Commit 3c5c821

Browse files
Make vector types hashable
1 parent ab1bbcc commit 3c5c821

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/tactile/core/math/vec.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include "tactile/core/concepts.hpp"
77
#include "tactile/core/primitives.hpp"
8+
#include "tactile/core/util/hash.hpp"
89

910
namespace tactile {
1011

@@ -92,3 +93,6 @@ using Vec2F = Vec2<float32>;
9293
using Vec2D = Vec2<float64>;
9394

9495
} // namespace tactile
96+
97+
TACTILE_IMPL_HASH(::tactile::Vec2F, value.x, value.y);
98+
TACTILE_IMPL_HASH(::tactile::Vec2D, value.x, value.y);

0 commit comments

Comments
 (0)