arcs: Convert and reduce arcs

Description Usage Arguments Details Author(s) Examples

Description

Functions for conversions and reduction of arcs.

Usage

1
2
3
4
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 <= min {U_{new}, V_{new}} < ref.

Author(s)

Christian W. Hoffmann <christian@echoffmann.ch>

Examples

1
2
3
4
5
deg(pi/2)  # 90
rad(180)  #  3.141593
reda(580,360) # -140
reda2(200,120,70) # 130, 50
reda2(100,-200,70) # 310, 10

cwhmisc documentation built on May 1, 2019, 7:55 p.m.