collision result
More...
#include <coal/collision_data.h>
◆ CollisionResult()
| coal::CollisionResult::CollisionResult | ( | | ) | |
| inline |
◆ addContact()
| void coal::CollisionResult::addContact | ( | const Contact & | c | ) | |
| inline |
add one contact into result structure
◆ clear()
| void coal::CollisionResult::clear | ( | | ) | |
| inline |
clear the results obtained
◆ getContact()
| const Contact & coal::CollisionResult::getContact | ( | size_t | i | ) | const |
| inline |
get the i-th contact calculated
◆ getContacts() [1/2]
| const std::vector< Contact > & coal::CollisionResult::getContacts | ( | | ) | const |
| inline |
◆ getContacts() [2/2]
| void coal::CollisionResult::getContacts | ( | std::vector< Contact > & | contacts_ | ) | const |
| inline |
◆ isCollision()
| bool coal::CollisionResult::isCollision | ( | | ) | const |
| inline |
return binary collision result
◆ numContacts()
| size_t coal::CollisionResult::numContacts | ( | | ) | const |
| inline |
◆ operator==()
◆ setContact()
| void coal::CollisionResult::setContact | ( | size_t | i, | | | const Contact & | c ) |
| inline |
set the i-th contact calculated
◆ swapObjects()
| void coal::CollisionResult::swapObjects | ( | | ) | |
reposition Contact objects when fcl inverts them during their construction.
◆ updateDistanceLowerBound()
| void coal::CollisionResult::updateDistanceLowerBound | ( | const CoalScalar & | distance_lower_bound_ | ) | |
| inline |
Update the lower bound only if the distance is inferior.
◆ distance_lower_bound
| CoalScalar coal::CollisionResult::distance_lower_bound |
◆ nearest_points
| std::array<Vec3s, 2> coal::CollisionResult::nearest_points |
nearest points. A CollisionResult can have multiple contacts. The nearest points in CollisionResults correspond to the witness points associated with the smallest distance i.e the distance_lower_bound. For bounding volumes and BVHs, these nearest points are available only when distance_lower_bound is inferior to CollisionRequest::break_distance.
◆ normal
| Vec3s coal::CollisionResult::normal |
The documentation for this struct was generated from the following file: