rot.deg: rotate degrees by amount in degrees

Description Usage Arguments Details Value Examples

Description

This function rotates angular locations in degrees by an ampunt given in degrees

Usage

1
rot.deg(x, amount = 0, rev = FALSE)

Arguments

x

numeric values in degrees

amount

amount to rotate

rev

logical if TRUE list objekt is returnd with number of revolutions

Details

postive values vor amount will result in clockwise rotation an negative values will result in counterclockwise rotation

Value

values in degrees rotatet by amount; optionaly number of revolutions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## rotation by 30 degrees
# inital value smaler than 330 degrees
rot.deg(200,30)
rot.deg(200,30,TRUE)
# inital value smaler than 360 degrees
rot.deg(350,30)
rot.deg(350,30,TRUE)
# inital value biger than 360 degrees
rot.deg(900,30)
rot.deg(900,30,TRUE)

holland documentation built on Sept. 5, 2021, 5:08 p.m.