# bdist.tiles

From spatstat v1.23-2
by Adrian Baddeley

##### Distance to Boundary of Window

Computes the shortest distances from each tile in a tessellation to the boundary of the window.

##### Usage

`bdist.tiles(X)`

##### Arguments

- X
- A tessellation (object of class
`"tess"`

).

##### Details

This function computes, for each tile $s_i$
in the tessellation `X`

, the shortest distance
from $s_i$
to the boundary of the window $W$ containing the tessellation.

##### Value

- A numeric vector,
giving the shortest distance from each tile in the tessellation
to the boundary of the window.
Entries of the vector correspond to the entries of
`tiles(X)`

.

##### See Also

##### Examples

```
P <- runifpoint(15)
X <- dirichlet(P)
plot(X, col="red")
B <- bdist.tiles(X)
# identify tiles that do not touch the boundary
plot(X[B > 0], add=TRUE, col="green", lwd=3)
```

*Documentation reproduced from package spatstat, version 1.23-2, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.