t = delaunay(cbind(x, y)), where (x, y) is a 2D set of
points, tsearch(x, y, t, xi, yi) finds the index in t
containing the points (xi, yi). For points outside the convex hull
the index is NA.tsearch(x, y, t, xi, yi, bary = FALSE)t = delaunayn(cbind(x, y))TRUE return barycentric coordinates as well as index
of triangle.bary is FALSE, the index in t containing
the points (xi, yi). For points outside the convex hull the index
is NA. If bary is TRUE, a list containing:t containing the points (xi,
yi)