| tsearchn {geometry} | R Documentation |
Search for the enclosing Delaunay convex hull
Description
For t = delaunayn(x), where x is a set of points in N
dimensions, tsearchn(x, t, xi) finds the index in t
containing the points xi. For points outside the convex hull,
idx is NA. tsearchn also returns the barycentric
coordinates p of the enclosing triangles.
Usage
tsearchn(x, t, xi, ...)
Arguments
x |
An |
t |
A matrix with |
xi |
An |
... |
Additional arguments |
Details
If x is NA and the t is a
delaunayn object produced by
delaunayn with the full option, then use the
Qhull library to perform the search. Please note that this is
experimental in geometry version 0.4.0 and is only partly tested
for 3D hulls, and does not yet work for hulls of 4 dimensions and
above.
Value
A list containing:
idxAn
M-long vector containing the indices of the row oftin which each point inxiis found.pAn
M-by-N+1matrix containing the barycentric coordinates with respect to the enclosing simplex of each point inxi.
Note
Based on the Octave function Copyright (C) 2007-2012 David Bateman.
Author(s)
David Sterratt