# Search for the enclosing Delaunay convex hull

### Description

For `t = delaunayn(x)`

, where `x`

is a set of points in `d`

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

1 |

### Arguments

`x` |
An |

`t` |
A |

`xi` |
An |

`fast` |
If the data is in 2D, use the fast C-based |

### Value

A list containing:

`list("idx")` |
An |

`list("p")` |
An |

### Note

Based on the Octave function Copyright (C) 2007-2012 David Bateman.

### Author(s)

David Sterratt

### See Also

tsearch, delaunayn