# diameter

From spatstat v1.19-2
by Adrian Baddeley

##### Diameter of an Object

Computes the diameter of an object such as a two-dimensional window or three-dimensional box.

##### Usage

`diameter(x)`

##### Arguments

- x
- A window or other object whose diameter will be computed.

##### Details

This function computes the diameter of an object such as a two-dimensional window or a three-dimensional box. The diameter is the maximum distance between any two points in the object.

The function `diameter`

is generic, with methods for
the class `"owin"`

(two-dimensional windows),
`"box3"`

(three-dimensional boxes) and
`"boxx"`

(multi-dimensional boxes).

##### Value

- The numerical value of the diameter of the object.

##### See Also

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

### Community examples

Looks like there are no examples yet.