20 #ifndef PLAYRHO_COLLISION_SIMPLEX_HPP
21 #define PLAYRHO_COLLISION_SIMPLEX_HPP
168 m_simplexEdges{simplexEdges}, m_normalizedWeights{normalizedWeights}
170 assert(simplexEdges.size() == normalizedWeights.size());
172 const auto sum = std::accumulate(begin(normalizedWeights), end(normalizedWeights),
180 return m_simplexEdges;
185 return m_simplexEdges[index];
190 return m_normalizedWeights[index];
197 return m_simplexEdges.size();
209 switch (simplex.
size())
213 case 3:
return Length2{0_m, 0_m};
214 default:
return Length2{0_m, 0_m};
221 #endif // PLAYRHO_COLLISION_SIMPLEX_HPP