![]() |
VOOZH | about |
D3.js is a strong JavaScript framework for data visualization, and one of its modules, Delaunay, supports Delaunay triangulation. The delaunay.find() method returns the index of the input point that is closest to the specified point (x, y).
delaunay.find(x, y[, i])The index of the Delaunay triangle contains the specified point (x, y).
Example: This example shows the use of delaunay.find() method.
Output: