arcs {cwhmisc} | R Documentation |
Functions for conversions and reduction of arcs.
deg( radian ) rad( degree ) reda( U, ref ) reda2(U, V, ref )
U,V,ref,radian,degree |
Real |
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 <= min {U_{new}, V_{new}} < ref.
Christian W. Hoffmann <christian@echoffmann.ch>
deg(pi/2) # 90 rad(180) # 3.141593 reda(580,360) # -140 reda2(200,120,70) # 130, 50 reda2(100,-200,70) # 310, 10