Free tools & games for everyone
Free · No sign-up · No accounts
Place points and watch convex hulls, Delaunay triangles, Voronoi regions and closest pairs appear, or draw a polygon to get its area and centroid.
| Tap or click | Add a point (or place the test point) |
|---|---|
| Drag | Move a point |
| Tab then Enter | Use the algorithm buttons, Scatter, Remove last and Clear |
The convex hull uses Andrew's monotone chain (O(n log n)): sort the points, then build the lower and upper chains, removing any point that makes a clockwise turn. The Delaunay triangulation uses the Bowyer-Watson algorithm: start with a huge triangle, add points one at a time, remove triangles whose circumcircle contains the new point and fill the hole. Voronoi edges join the circumcentres of neighbouring triangles. The closest pair uses a sorted sweep that only compares points within the best distance so far.
Polygon area and centroid use the shoelace formula, the crossing test checks every pair of non-neighbouring sides, and inside or outside uses ray casting. Lengths are in screen pixels. Everything runs in your browser.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product