rotate.traps {secr} | R Documentation

## Rotate Detectors

### Description

Rotate detectors while retaining other attributes.

### Usage

    ## S3 method for class 'traps':
    rotate(object, degrees, centrexy = NULL, ...)

### Arguments

`object` | object of class `traps`
`degrees` | clockwise angle of rotation in degrees
`centrexy` | vector with x,y coordinates of point about which to rotate
`...` | other arguments (not used).

### Details

May be used with `rbind.traps` and `shift.traps` to create complex geometries.

### Value

An object of class `traps` with the location of each detector rotated about the centre.

### Author(s)

Murray Efford murray.efford@otago.ac.nz

### See Also

`traps`, `shift.traps`

### Examples

    hollow1 <- make.grid(nx = 8, ny = 8, hollow = TRUE)
    hollow2 <- make.grid(nx = 8, ny = 8, hollow = TRUE)
    nested <- rbind (hollow1, rotate(hollow2, 45, c(70, 70)))
    plot(nested, gridlines = FALSE)

[Package secr version 1.3.0 Index]