Gilbert–Johnson–Keerthi distance algorithm: Difference between revisions

Content deleted Content added
Ap34910 (talk | contribs)
m fix the support function link
syntaxhighlight instead of code
Line 18:
=== Pseudocode ===
 
<syntaxhighlight>
<code>
function GJK_intersection(shape p, shape q, vector initial_axis):
vector A = Support(p, initial_axis) - Support(q, -initial_axis)
Line 31:
if contains_origin:
accept
</syntaxhighlight>
</code>
 
== Illustration==