21 #ifndef PLAYRHO_DYNAMICS_CONTACTS_CONTACTKEY_HPP
22 #define PLAYRHO_DYNAMICS_CONTACTS_CONTACTKEY_HPP
46 m_ids{std::minmax(fp1, fp2)}
67 std::pair<ContactCounter, ContactCounter> m_ids{
75 return lhs.GetMin() == rhs.GetMin() && lhs.GetMax() == rhs.GetMax();
87 return (lhs.GetMin() < rhs.GetMin())
88 || ((lhs.GetMin() == rhs.GetMin()) && (lhs.GetMax() < rhs.GetMax()));
94 return (lhs.GetMin() < rhs.GetMin())
95 || ((lhs.GetMin() == rhs.GetMin()) && (lhs.GetMax() <= rhs.GetMax()));
101 return (lhs.GetMin() > rhs.GetMin())
102 || ((lhs.GetMin() == rhs.GetMin()) && (lhs.GetMax() > rhs.GetMax()));
108 return (lhs.GetMin() > rhs.GetMin())
109 || ((lhs.GetMin() == rhs.GetMin()) && (lhs.GetMax() >= rhs.GetMax()));
152 const auto a = std::size_t{key.
GetMin()} * 2654435761u;
153 const auto b = std::size_t{key.
GetMax()} * 2654435761u;
159 #endif // PLAYRHO_DYNAMICS_CONTACTS_CONTACTKEY_HPP