On this page
Add a square to a disc and you get a rounded square. Add two triangles and you can get a hexagon. This shape addition is the Minkowski sum, and robots use it to work out where they can move.
What is the Minkowski sum of two shapes?
The Minkowski sum of two sets A and B is A + B = {a + b : a in A, b in B}, every point you get by adding a point of A to a point of B as position vectors (Minkowski addition, Wikipedia).
Picture it as smearing: place a copy of B at every point of A, and the region the copies cover is A + B.
Why is a square plus a disc a rounded square?
Slide a disc of radius r so its centre visits every point of a square of side s. Along each side the disc sweeps a strip r wide; at each corner it can only swing round, tracing a quarter circle. Add up the pieces:
the square: s²
four strips, each s by r: 4sr
four quarter circles, one full disc: πr²
So the area is s² + 4sr + πr². With s = 2 and r = 1 that is 4 + 8 + π, about 15.14. Notice that 4sr is the perimeter times r.
How do you add two convex polygons?
For convex polygons with m and n vertices, the Minkowski sum is a convex polygon with at most m + n vertices, built in O(m + n) time by merging the edges of both polygons in order of polar angle (Minkowski addition, Wikipedia). The recipe:
Write each polygon's edges as vectors, going anticlockwise.
Sort all the edges by angle.
Start at the sum of the two lowest vertices (lowest y, then lowest x).
Lay the edges head to tail in that order until you return to the start.
Edges pointing the same way merge, hence at most m + n.
Worked example: two triangles make a hexagon.
Triangle A has vertices (0, 0), (2, 0), (0, 2). Its edges are (2, 0) at 0°, (−2, 2) at 135° and (0, −2) at 270°.
Triangle B has vertices (2, 0), (2, 2), (0, 2). Its edges are (0, 2) at 90°, (−2, 0) at 180° and (2, −2) at 315°.
Merged by angle: 0°, 90°, 135°, 180°, 270°, 315°, six directions and so six edges. Start at (0, 0) + (2, 0) = (2, 0) and walk: (4, 0), (4, 2), (2, 4), (0, 4), (0, 2), then back to (2, 0): a hexagon.
Check: add each corner of A to each corner of B. The nine sums give seven distinct points: the six hexagon vertices, plus (2, 2), which turns up three times and sits inside. The perimeter of a sum of convex shapes equals the sum of their perimeters (Minkowski addition, Wikipedia): each triangle has 4 + 2√2 and the hexagon has 8 + 4√2.
What is the area formula for a Minkowski sum?
For convex bodies, the volume of λ1K1 + λ2K2 is a homogeneous polynomial in λ1 and λ2 whose coefficients are called mixed volumes (Mixed volume, Wikipedia). In the plane it has degree 2, so with both λ equal to 1:
area(A + B) = area(A) + 2V(A, B) + area(B)
V(A, B) is the mixed area, and V(A, A) is just area(A). For the hexagon, the shoelace formula gives area 12 and each triangle has area 2, so 2V(A, B) = 8. For the rounded square, 2V = 4sr, the perimeter times r: the planar Steiner formula, which the same page derives from mixed volumes with a ball.
How do robots use Minkowski sums for motion planning?
In motion planning, a configuration is a robot's pose, the configuration space is the set of all configurations, and those avoiding obstacles form the free space (Motion planning, Wikipedia). Tomás Lozano-Pérez set out this approach in Spatial Planning: A Configuration Space Approach, in IEEE Transactions on Computers in 1983 (DOI record); his earlier MIT memo treats an object's position and orientation as one point, with forbidden placements as regions (MIT AI Memo 605).
For a robot that slides without turning, each configuration-space obstacle is the Minkowski sum of the obstacle and the robot rotated by 180 degrees (Minkowski addition, Wikipedia). A round robot looks the same rotated, so every square pillar grows into the rounded square from earlier, and the robot shrinks to a point that must avoid the grown shapes.
How can you practise Minkowski sums?
On graph paper, add a triangle to a square by merging edges, then check with all the vertex sums.
Predict the number of sides first by counting distinct edge directions.
If vectors, convexity or polar angles feel shaky, the Fermi Concept Library covers every concept in mathematics, so you can fix the gap before the next problem. For more convex geometry, read Minkowski's theorem on lattice points, Helly's theorem on convex sets and why the regular polygon encloses the most area.



