Learn R Programming

cylcop (version 0.2.0)

half2full_circ: Convert Angle from Half Circle to Full Circle

Description

Converts an angle from the half circle (i.e. in the interval \([-\pi, \pi)\)) to an angle on the full circle (i.e. in the interval \([0, 2\pi)\)).

Usage

half2full_circ(angle)

Value

The numeric value of the angle in \([0, 2\pi)\).

Arguments

angle

numeric value of an angle or a circular-object in \([-\pi, \pi)\).

Examples

Run this code
half2full_circ(-1 * pi) / pi
half2full_circ(-0.5 * pi) / pi
half2full_circ(-0 * pi) / pi
half2full_circ(0.5 * pi) / pi

Run the code above in your browser using DataLab