Get the latest tech news

The GJK Algorithm: A weird and beautiful way to do a simple thing


. We have shape A and shape B, and we'd like to determine if they overlap.

The goal of the GJK algorithm is to find a simplex on A ⊖ B that contains the origin (or show that none exists), while doing as few operations as possible. Let's appreciate how incredible such an algorithm would be: given any convex shape, as long as it has some defined notion of support points, we can detect collisions. So, take it with the appropriate amount of salt for a high school sophomore's explanation of anything math related.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Way

Way

Photo of GJK Algorithm

GJK Algorithm

Photo of simple thing

simple thing

Related news:

News photo

The Internet Isn’t Getting More Toxic. It Just Feels That Way

News photo

Spotify's HiFi tier is reportedly on the way as an 'add-on' for existing plans

News photo

Resident Evil 7 is making its way to the iPhone, iPad, and Mac