38 #ifndef FCL_COLLISIONRESULT_INL_H
39 #define FCL_COLLISIONRESULT_INL_H
48 struct CollisionResult<double>;
61 contacts.push_back(c);
69 cost_sources.insert(c);
70 while (cost_sources.size() > num_max_cost_sources)
71 cost_sources.erase(--cost_sources.end());
78 return contacts.size() > 0;
85 return contacts.size();
92 return cost_sources.size();
99 if(i < contacts.size())
102 return contacts.back();
106 template <
typename S>
110 contacts_.resize(contacts.size());
111 std::copy(contacts.begin(), contacts.end(), contacts_.begin());
115 template <
typename S>
119 cost_sources_.resize(cost_sources.size());
120 std::copy(cost_sources.begin(), cost_sources.end(), cost_sources_.begin());
124 template <
typename S>
128 cost_sources.clear();