cirrange: Force an angle into the range 0 <= ang < 360

Description Usage Arguments Details Value Author(s) Examples

Description

Force an angle into the range 0 <= ang < 360

Usage

1
cirrange(ang, radians=FALSE)

Arguments

ang

angle, scalar or vector

radians

indicates that angle is specified in radians rather than decimal degrees (optional, default = FALSE)

Details

The input angle is transformed into the range 0 to +360 degrees (or 0 to 2*pi for radians). This function is used by several other astrolib functions, and is rarely used directly by the user.

Value

ang

transformed angle

Author(s)

Written by Michael R. Greason, Hughes STX, 10 February 1994

R adaptation by Arnab Chakraborty June 2013

Examples

1
new_ang <- cirrange(-40.)   # returns 320.  

astrolibR documentation built on May 2, 2019, 3:26 a.m.