Transforms given angles in counter clock mode into clockwise angles.

Clockwise(x, start = 0)

Arguments

x

a vector of angles

start

the starting angle for the transformation. Defaults to 0.

Details

Sometimes there's need for angles being defined the other way round.

Value

a data.frame with two columns, containing the start and end angles.

Author

Andri Signorell <andri@signorell.net>

See also

Examples

Clockwise( c(0, pi/4, pi/2, pi))
#>        from        to
#> 1 6.2831853 6.2831853
#> 2 5.4977871 6.2831853
#> 3 3.9269908 5.4977871
#> 4 0.7853982 3.9269908
#> 5 0.0000000 0.7853982