20 #ifndef PLAYRHO_DYNAMICS_FILTER_HPP
21 #define PLAYRHO_DYNAMICS_FILTER_HPP
68 return lhs.categoryBits == rhs.categoryBits
69 && lhs.maskBits == rhs.maskBits
70 && lhs.groupIndex == rhs.groupIndex;
84 if ((filterA.groupIndex == filterB.groupIndex) && (filterA.groupIndex != 0))
86 return filterA.groupIndex > 0;
88 return ((filterA.maskBits & filterB.categoryBits) != 0) &&
89 ((filterB.maskBits & filterA.categoryBits) != 0);
94 #endif // PLAYRHO_DYNAMICS_FILTER_HPP