22 #ifndef PLAYRHO_COLLISION_SHAPES_CHAINSHAPECONF_HPP
23 #define PLAYRHO_COLLISION_SHAPES_CHAINSHAPECONF_HPP
77 return (count > 1)? count - 1: count;
99 return m_vertices[index];
106 return m_normals[index];
113 return lhs.
vertexRadius == rhs.vertexRadius && lhs.friction == rhs.friction
114 && lhs.restitution == rhs.restitution && lhs.density == rhs.density
115 && lhs.m_vertices == rhs.m_vertices;
121 return !(lhs == rhs);
141 std::vector<Length2> m_vertices;
142 std::vector<UnitVec> m_normals;
147 vertexRadius = value;
156 return arg.GetChildCount();
168 return arg.GetMassData();
174 const auto count = shape.GetVertexCount();
175 return (count > 1)? (shape.GetVertex(count - 1) == shape.GetVertex(0)):
false;
221 #endif // PLAYRHO_COLLISION_SHAPES_CHAINSHAPECONF_HPP