Learn R Programming

cwhmisc (version 6.0)

arcs: Convert and reduce arcs

Description

Functions for reduction of arcs.

Usage

deg( radian ) rad( degree ) reda( U, ref ) reda2(U, V, ref )

Arguments

U,V,ref,radian,degree
Real

Details

deg Convert radians to degrees. rad Convert degrees to radians. reda Add or subtract multiples of ref to make $abs(U) < ref/2$. reda2 Subtract from U and V the greatest multiple of ref, so that $0

Examples

Run this code
deg(pi/2)  # 90
rad(180)  #  3.141593
reda(580,360) # -140
reda2(200,120,70) # 130, 50
reda2(100,-200,70) # 310, 10

Run the code above in your browser using DataLab