# corners

From spatstat v1.61-0
by Adrian Baddeley

##### Corners of a rectangle

Returns the four corners of a rectangle

##### Usage

`corners(window)`

##### Arguments

##### Details

This trivial function is occasionally convenient.
If `window`

is of type `"rectangle"`

this returns the
four corners of the window itself;
otherwise, it returns the corners of the bounding rectangle
of the window.

##### Value

A list with two components `x`

and `y`

, which are numeric
vectors of length 4 giving the coordinates of the four corner points
of the (bounding rectangle of the) window.

##### See Also

##### Examples

```
# NOT RUN {
w <- unit.square()
corners(w)
# returns list(x=c(0,1,0,1),y=c(0,0,1,1))
# }
```

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

### Community examples

Looks like there are no examples yet.