diff --git a/openGJK.c b/openGJK.c index c5a0417..c430d9e 100644 --- a/openGJK.c +++ b/openGJK.c @@ -763,7 +763,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { s.nvrtx = 0; /* Compute squared distance using GJK algorithm */ - distance[0] = gjk(bd1, bd2, &s); + distance[0] = compute_minimum_distance(bd1, bd2, &s); mxFree(arr1); mxFree(arr2);