diff --git a/include/fcl/narrowphase/gjk_libccd.h b/include/fcl/narrowphase/gjk_libccd.h index c5c7f09a88a62ae56956bda52ddd6bbbb6643031..dd3ca3495f66ec49ecb3e0b3247b28ec4858c759 100644 --- a/include/fcl/narrowphase/gjk_libccd.h +++ b/include/fcl/narrowphase/gjk_libccd.h @@ -158,6 +158,12 @@ bool GJKCollide(void* obj1, ccd_support_fn supp1, ccd_center_fn cen1, unsigned int max_iterations, FCL_REAL tolerance, Vec3f* contact_points, FCL_REAL* penetration_depth, Vec3f* normal); +/// Distance computation between objects using GJK algorithm +/// \param obj1, obj2 objects to compute the distance between, +/// \param supp1, supp2, support functions of each object, +/// \retval p1, p2 closest points on objects in global frame, +/// \retval dist distance between objects, +/// \return whether distance is non negative (no collision). bool GJKDistance(void* obj1, ccd_support_fn supp1, void* obj2, ccd_support_fn supp2, unsigned int max_iterations, FCL_REAL tolerance,