# tin

From lidR v2.0.0
by Jean-Romain Roussel

##### Spatial Interpolation Algorithm

This function is made to be used in grid_terrain or lasnormalize. It implements an algorithm for spatial interpolation. Spatial interpolation is based on a Delaunay triangulation, which performs a linear interpolation within each triangle. There are usually a few points outside the convex hull, determined by the ground points at the very edge of the dataset, that cannot be interpolated with a triangulation. Extrapolation is done using the nearest neighbour approach.

##### Usage

`tin()`

##### See Also

##### Examples

```
# NOT RUN {
LASfile <- system.file("extdata", "Topography.laz", package="lidR")
las = readLAS(LASfile)
# plot(las)
dtm = grid_terrain(las, algorithm = knnidw(k = 6L, p = 2))
plot(dtm, col = terrain.colors(50))
plot_dtm3d(dtm)
# }
```

*Documentation reproduced from package lidR, version 2.0.0, License: GPL-3*

### Community examples

Looks like there are no examples yet.