How Welzl encloses points in a disk

Short answer: Welzl’s algorithm computes the smallest enclosing disk of a finite planar point set. It is incremental and randomized. The recursive call returns the smallest disk of a subset, defined by at most three boundary points. A point that falls outside that disk is moved onto the boundary…

How GJK tests two convex shapes for overlap

Short answer: The Gilbert-Johnson-Keerthi algorithm decides whether two convex sets intersect by chasing a simplex inside their Minkowski difference. The difference contains the origin exactly when the shapes touch or overlap. Each iteration asks a support function for the farthest point in a chosen direction, adds that point to…