tsearchn
Point location in a triangulation
📝Syntax
idx = tsearchn(P, T, Q)
[idx, bary] = tsearchn(P, T, Q)
📄Description

tsearchn finds the simplex containing each query point.

Points outside the triangulation return NaN.

💡Examples
Find the containing triangle and barycentric coordinates.
P = [0 0; 1 0; 1 1; 0 1];
T = delaunayn(P);
[idx, bary] = tsearchn(P, T, [0.25 0.25])
🔗See Also
dsearchndelaunayn
🕔Version History
Version Description
2.0.0 Initial version.
Edit this page on GitHub