mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
fix quaternion hash_value function
This commit is contained in:
parent
2d9b3b4b99
commit
1fabe7da1c
1 changed files with 10 additions and 8 deletions
|
@ -15,14 +15,16 @@
|
|||
#include <sprout/functional/hash.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
// hash_value
|
||||
//
|
||||
template<typename T>
|
||||
inline SPROUT_CONSTEXPR std::size_t
|
||||
hash_value(sprout::math::quaternion<T> const& v) {
|
||||
return sprout::hash_values(v[0], v[1], v[2], v[3]);
|
||||
}
|
||||
namespace math {
|
||||
//
|
||||
// hash_value
|
||||
//
|
||||
template<typename T>
|
||||
inline SPROUT_CONSTEXPR std::size_t
|
||||
hash_value(sprout::math::quaternion<T> const& v) {
|
||||
return sprout::hash_values(v[0], v[1], v[2], v[3]);
|
||||
}
|
||||
} // namespace math
|
||||
} // namespace sprout
|
||||
|
||||
namespace std {
|
||||
|
|
Loading…
Reference in a new issue