tsearch
geometry · scripts/geometry/tsearch.m
TSEARCH Locate enclosing triangle for query points (Octave name).
IDX = TSEARCH(X, Y, T, XI, YI)
Wraps __tsearch__. X and Y are vertex coordinates; each row of T
lists three vertex indices of one triangle. For every query point
(XI(k), YI(k)) the result is the first enclosing triangle index, or
NaN when none contains it. MATLAB removed tsearch; portable code
uses pointLocation / triangulation. Unmarked MATLAB-mode scripts
that never call this name are unaffected.
See also TSEARCHN, DELAUNAY, DSEARCHN.