Learn R Programming

holland (version 0.1.2-1)

rot.rad: rotate radians by amount in radians

Description

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

Usage

rot.rad(x, amount = 0, rev = FALSE)

Arguments

x

numeric values in radians

amount

amount to rotate (in radians)

rev

logical if TRUE list objekt is returnd with number of revolutions

Value

values in radians rotatet by amount; optionaly number of revolutions

Details

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

Examples

Run this code
# NOT RUN {
## rotation by 0.5235988 radians
# inital value smaler than 5.759587 radians
rot.rad(3.490659,0.5235988)
rot.rad(3.490659,0.5235988,TRUE)
# inital value smaler than 6.283185 radians
rot.rad(6.108652,0.5235988)
rot.rad(6.108652,0.5235988,TRUE)
# inital value biger than 6.283185 radians
rot.rad(15.70796,0.5235988)
rot.rad(15.70796,0.5235988,TRUE)
# }

Run the code above in your browser using DataLab