cirrange {astrolibR}R Documentation

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

Description

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

Usage

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

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

[Package astrolibR version 0.1 Index]