Mean Function:
[dist,v] = gjk2d(O,R)
Output:
- dist: closest distance between 2 convex if no collision
- v: move along v will cause first collision
With an example: generate 100 none collision convex, see mlx file:
Cite As
HS Ding (2026). gjk_2d (https://uk.mathworks.com/matlabcentral/fileexchange/168101-gjk_2d), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
